RemovePhoneNumbers
Removes one or more phone numbers from a specified instance. This operation does not permanently delete the phone numbers. Instead, it dissociates the phone numbers from the instance, including their associated skill groups, contact flows, and agents.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
ccc-test |
| NumberList |
string |
Yes |
The list of phone numbers to remove. |
["0101234****","0105678****"] |
| Force |
boolean |
No |
Specifies whether to force delete the phone numbers. If a phone number is associated with a skill group, contact flow, or agent, you can execute the deletion only by changing the Settings of this field to true. This parameter is optional. Default value: false. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Code |
string |
The response code. |
OK |
| Message |
string |
The response message. |
None |
| RequestId |
string |
The ID of the request. |
EEEE671A-3E24-4A04-81E6-6C4F5B39DF75 |
| Data |
array |
The list of phone numbers that failed to be removed. |
None |
|
string |
The phone number. |
0101234**** |
|
| Params |
array |
The list of error parameters. |
["ParameterName"] |
|
string |
The response parameter. |
None |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"Code": "OK",
"Message": "无",
"RequestId": "EEEE671A-3E24-4A04-81E6-6C4F5B39DF75",
"Data": [
"0101234****"
],
"Params": [
"无"
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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.