Delete outbound numbers from a project
Delete outbound numbers from project
Remove one or more outbound caller ID phone numbers from a specific project.
Note: A maximum of 500 phone numbers can be removed in a single request. The last remaining outbound number cannot be removed from a project, and numbers cannot be removed while agents are logged in to the project. If a removed number is mapped via “caller number by field value”, its mapping is automatically deleted and record caller numbers are recalculated synchronously during the request. The operation is idempotent, clears the DID cache, flushes the dialer, and records the change in the security log.
| Request | |
|---|---|
| Method | DELETE |
| Resource | https://[customer].asp.virtual-call-center.eu/v2/projects/[projectid]/outbound_numbers |
| Options | N/A |
| Body | JSON object containing an array of phone numbers to remove. |
| Response | |
| Body | Object containing status per phone number and any errors encountered, encoded in JSON. |
Request
Resource parameters
| Name | Type | Mandatory | Comment |
|---|---|---|---|
| customer | string | yes | Your account name. |
| projectid | integer | yes | Unique project identifier. |
Body parameters
| Name | Type | Mandatory | Comment |
|---|---|---|---|
| numbers | array of strings | yes | List of outbound phone numbers to remove from the project (maximum 500 numbers). |
Response
Response object
| Name | Type | Comment |
|---|---|---|
| [number] | boolean | Indicates whether the phone number was successfully removed (true). |
Errors object
| Name | Type | Comment |
|---|---|---|
| errorcode | integer | Error code identifying the error type (e.g. 600). |
| errormessage | string | Error message describing why removal failed. |
| property | string | Property associated with the error (e.g. numbers). |
| index | integer | 0-based index of the failed number in the request array. |
Example
URL: https://mycc.asp.virtual-call-center.eu/v2/projects/123/outbound_numbers
Request Body:
{
"numbers": [
"3619999001"
]
}
Response:
{
"response": {
"3619999001": true
},
"errors": []
}
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.