Update numbers of SIP Trunk
Update SIP trunk numbers
Update labels of phone numbers on a specific SIP trunk.
Note: A maximum of 500 phone numbers can be updated in a single request.
| Request | |
|---|---|
| Method | PUT |
| Resource | https://[customer].asp.virtual-call-center.eu/v2/sip_trunks/[trunkid]/numbers |
| Options | N/A |
| Body | JSON object containing an array of numbers with updated labels. |
| Response | |
| Body | Object containing details of the updated phone numbers keyed by number, encoded in JSON. |
Request
Resource parameters
| Name | Type | Mandatory | Comment |
|---|---|---|---|
| customer | string | yes | Your account name. |
| trunkid | string | yes | Unique SIP trunk identifier (routing ID). |
Body parameters
| Name | Type | Mandatory | Comment |
|---|---|---|---|
| numbers | array of objects | yes | List of phone numbers whose labels are to be updated (maximum 500 numbers). |
Numbers object
| Name | Type | Mandatory | Comment |
|---|---|---|---|
| number | string | yes | Phone number in digits only (including country prefix). |
| label | string | yes | New descriptive label for the phone number (e.g. “Support”). |
Response
Response object
| Name | Type | Comment |
|---|---|---|
| [number] | object | Details of the updated phone number, identified by the phone number itself as key. |
Number details object
| Name | Type | Comment |
|---|---|---|
| number | string | The phone number. |
| label | string | Updated label of the phone number. |
| routingId | string | Unique identifier of the SIP trunk routing. |
| routingName | string | Name of the SIP trunk routing. |
| cliEnabled | boolean | Specifies whether CLI is enabled for the number. |
Example
URL: https://mycc.asp.virtual-call-center.eu/v2/sip_trunks/mycc_carrier_customer_routing/numbers
Request Body:
{
"numbers": [
{
"number": "3619999001",
"label": "Support"
}
]
}
Response:
{
"response": {
"3619999001": {
"number": "3619999001",
"label": "Support",
"routingId": "mycc_carrier_customer_routing",
"routingName": "Carrier",
"cliEnabled": 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.