You can invoke CreateCallTags to create multiple call tags under a specified instance.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
ccc-test |
| CallTagNameList |
string |
Yes |
A JSON-formatted string representing an array of call tag names. Each array element is a call tag name to be created. The length of each call tag name must be between 1 and 10 characters. |
["TagA","TagB"] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
EEEE671A-3E24-4A04-81E6-6C4F5B39DF75 |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Code |
string |
The response code. |
OK |
| Message |
string |
The response message. |
无 |
| Data |
array<object> |
The list of call tags that failed to be created. |
|
|
object |
Information about a call tag that failed to be created. |
||
| Item |
string |
The name of the call tag that failed to be created. |
TagC |
| Reason |
string |
The reason why the call tag creation failed. Valid values:
|
CALL_TAG_NAME_DUPLICATED |
Examples
Success response
JSON format
{
"RequestId": "EEEE671A-3E24-4A04-81E6-6C4F5B39DF75",
"HttpStatusCode": 200,
"Code": "OK",
"Message": "无",
"Data": [
{
"Item": "TagC",
"Reason": "CALL_TAG_NAME_DUPLICATED"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Parameter.Blank | The parameter %s must not be null or empty. | |
| 400 | Parameter.Minimum | The parameter %s must be greater than or equal to %s. | |
| 400 | Parameter.Maximum | The parameter %s must be less than or equal to %s. | |
| 400 | LimitExceed.CallTagsPerInstance | The total number of call tag of the instance exceeds the limit %s. | |
| 500 | InternalService.DB | An internal DB service error occurred. %s | |
| 404 | NotExists.InstanceId | The specified instance %s does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.