You can invoke CreateCustomCallTagging to create one or more inbound number tags under a specified instance.
This API has been deprecated. We recommend migrating to CCC(2020-07-01) - CreateCustomCallTaggings for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
Instance ID. |
ccc-test |
| CustomNumberList |
string |
Yes |
A list of inbound control tags, formatted as a JSON array string. The number of array elements must be between 1 and 10,000. Each element in the array is an object with the following properties: number (must be a numeric string of 4 to 32 characters), description, and callTagNameList. The callTagNameList is an array whose elements are number labels (ensure that these number labels have already been created). |
[{"number":"1312121****","description":"王先生","callTagNameList":["TagA"]},{"number":"1388888****","description":"张先生","callTagNameList":["TagB"]}] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
BA03159C-E808-4FF1-B27E-A61B6E888D7F |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Code |
string |
The response code. |
OK |
| Message |
string |
The response message. |
无 |
| Data |
array<object> |
The list of inbound number tags that failed to be created. |
|
|
object |
Information about an inbound number tag that failed to be created. |
||
| Item |
string |
The number of the inbound number tag that failed to be created. |
1312121**** |
| Reason |
string |
The reason why the creation of the inbound number tag failed. Valid values:
|
CUSTOM_NUMBER_DUPLICATED |
Examples
Success response
JSON format
{
"RequestId": "BA03159C-E808-4FF1-B27E-A61B6E888D7F",
"HttpStatusCode": 200,
"Code": "OK",
"Message": "无",
"Data": [
{
"Item": "1312121****",
"Reason": "CUSTOM_NUMBER_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.Maximum | The parameter %s must be less than or equal to %s. | |
| 500 | InternalService.DB | An internal DB service error occurred. %s | |
| 404 | NotExists.InstanceId | The specified instance %s does not exist. | |
| 404 | NotExists.RamId | RAM user %s does not exist. | |
| 409 | AlreadyExists.CustomNumber | Custom number already exists. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.