Domain name for API request: lke.intl.tencentcloudapi.com.
This API is used to create attributes.
A maximum of 100 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: CreateAttributeLabel. |
| Version | Yes | String | Common Params. The value used for this API: 2023-11-30. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. This API only supports: ap-jakarta. |
| BotBizId | Yes | String | Application ID. |
| AttrName | Yes | String | Label name. |
| Labels.N | Yes | Array of AttributeLabel | Label value. |
| AttrKey | No | String | Label identification (not effective, no need to fill in) . Abolished. |
| LoginUin | No | String | Log in to user's root account (required in integrator mode). |
| LoginSubAccountUin | No | String | Log in to user's sub-account (required in integrator mode). |
| Parameter Name | Type | Description |
|---|---|---|
| AttrBizId | String | Label ID. |
| 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 label
POST / HTTP/1.1
Host: lke.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateAttributeLabel
<Common request parameter>
{
"BotBizId": "1826933901291945900",
"AttrName": "Vehicle type",
"Labels": [
{
"LabelName": "SUV",
"SimilarLabels": [
"Sport Utility Vehicle",
"SUV"
]
}
]
}{
"Response": {
"AttrBizId": "1856169972235990080",
"RequestId": "044de4f1-8d88-4779-b9f7-b8c0e9f81752"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| FailedOperation | Operation failed. |
Feedback