Domain name for API request: adp.intl.tencentcloudapi.com.
Create a tag
A maximum of 20 requests can be initiated per second for this API.
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: CreateLabel. |
| Version | Yes | String | Common Params. The value used for this API: 2026-05-20. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| KbId | Yes | String | Knowledge base ID |
| Name | Yes | String | Tag name (length not less than 1 character) |
| TermList.N | No | Array of LabelTerm | Tag value (standard term + synonym list), where term_id is generated by the backend and left empty upon creation |
| Parameter Name | Type | Description |
|---|---|---|
| LabelId | String | Tag ID |
| TermList | Array of LabelTerm | Tag value (standard word + synonym list, including the term_id generated by the backend) |
| 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. |
Create a tag
POST / HTTP/1.1
Host: adp.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateLabel
<Common request parameters>
{
"KbId": "2097216771738716160",
"Name": "Class",
"TermList": [
{
"SynonymList": [],
"Term": "Grade 2"
}
]
}
{
"Response": {
"LabelId": "2097217495989591744",
"TermList": [
{
"TermId": "2097217495989591745",
"Term": "Second grade",
"SynonymList": []
}
],
"RequestId": "df05caba-494f-491f-bf4a-3355233445b8"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
There is no error code related to the API business logic. For other error codes, please see Common Error Codes.
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários