tencent cloud

APIs

CreateGlossaryEntries

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-06-26 14:41:04

1. API Description

Domain name for API request: tokenhub.intl.tencentcloudapi.com.

Create terminology entries in batches.

Create terminology entries in batches under the designated Termbase. You can create up to 100 entries at a time.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: CreateGlossaryEntries.
Version Yes String Common Params. The value used for this API: 2026-03-22.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
GlossaryId Yes String Termbase ID. Obtain through the API DescribeGlossaries.
Entries.N Yes Array of GlossaryEntryInput Terminology entry list. At a time 100.

3. Output Parameters

Parameter Name Type Description
Entries Array of GlossaryEntryItem List of successfully created terminology entries.
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 CreateGlossaryEntries

Input Example

POST / HTTP/1.1
Host: tokenhub.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateGlossaryEntries
<Common request parameters>

{
    "GlossaryId": "c5a3fa588af94ddaa50ca896ae6392e5",
    "Entries": [
        {
"SourceTerm": "Cloud server",
            "TargetTerm": "Cloud Server"
        },
        {
"SourceTerm": "Cloud server 222"
            "TargetTerm": "Cloud Server222"
        }
    ]
}

Output Example

{
    "Response": {
        "Entries": [
            {
                "EntryId": "bfbc15bbefa2dfcec068372c774ef45c",
"SourceTerm": "Cloud server",
                "TargetTerm": "Cloud Server",
                "UpdatedAt": 1779970384
            },
            {
                "EntryId": "b395853160e117177041f0dff7a56274",
"SourceTerm": "Cloud server 222"
                "TargetTerm": "Cloud Server222",
                "UpdatedAt": 1779970384
            }
        ],
        "RequestId": "04cfa4f3-68d1-4a85-9ae3-3e2bd6d46fbb"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
InternalError.InternalError InternalError.InternalError
InvalidParameter.InvalidParameter InvalidParameter.InvalidParameter
InvalidParameterValue.InvalidParameterValue InvalidParameterValue.InvalidParameterValue
MissingParameter.MissingParameter MissingParameter.MissingParameter
ResourceNotFound.GlossaryNotFound ResourceNotFound.GlossaryNotFound
UnauthorizedOperation.UnauthorizedOperation UnauthorizedOperation.UnauthorizedOperation

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan