AddPhoneNumbers
Adds one or more phone numbers to a specified instance.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
ccc-test |
| ContactFlowId |
string |
No |
The ID of the associated IVR contact flow. This parameter takes effect only when the usage of the phone number includes inbound calls. This parameter is optional and left empty by default. |
dDMD_0mif4hv |
| Usage |
string |
Yes |
The usage of the phone number. Note that if the specified phone number is a 400 number, the usage can only be set to Inbound. Valid values:
|
Bidirection |
| NumberList |
string |
No |
The list of phone numbers to be added. |
["0101234****", "0105678****"] |
| NumberGroupId |
string |
No |
The ID of the phone number group. You can view phone number group information in the Cloud Call Center console. This parameter is optional and left empty by default. |
2cb77c29-5f60-4b90-b21e-9d2ba9833f14 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. |
OK |
| Data |
array |
The list of phone numbers that failed to be added. |
|
|
string |
The phone number. |
0101234**** |
|
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The response message. |
None |
| RequestId |
string |
The request ID. |
EEEE671A-3E24-4A04-81E6-6C4F5B39DF75 |
Examples
Success response
JSON format
{
"Code": "OK",
"Data": [
"0101234****"
],
"HttpStatusCode": 200,
"Message": "None",
"RequestId": "EEEE671A-3E24-4A04-81E6-6C4F5B39DF75"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Parameter.Enumeration | The parameter %s must be one of the value of enumeration %s. | The parameter must be one of the enumeration values defined by the system. |
| 400 | Parameter.Maximum | The parameter %s must be less than or equal to %s. | The parameter must be less than or equal to the maximum value defined by the system. |
| 400 | Parameter.Minimum | The parameter %s must be greater than or equal to %s. | The parameter must be greater than or equal to the minimum value defined by the system. |
| 404 | NotExists.InstanceId | The specified instance %s does not exist. | The specified call center instance does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.