Delete inbound numbers from a project
Delete inbound numbers from project
Remove one or more inbound phone numbers from a specific project.
Note: A maximum of 500 phone numbers can be removed in a single request. The operation is idempotent: numbers that are already unassigned from the project succeed without error. Removing numbers automatically clears the DID cache and records the change in the security log.
| Request | |
|---|---|
| Method | DELETE |
| Resource | https://[customer].asp.virtual-call-center.eu/v2/projects/[projectid]/inbound_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 inbound 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/inbound_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.