update did destinations

API Docs by APIMATIC

Update DID Destinations

Use this method to update inbound call routing for DIDs. Calls can be routed to a SIP URI, a PSTN number or a SIP trunk on the platform. Destinations for several DIDs can be updated with a single request.

This endpoint requires authentication.

POST /mydids/update_destinations
  • EXPLORER
  • PARAMETERS
Endpoint Arguments*
Parameters*
body (UpdateDIDDestinationRequest)*

JSON object containing a prioritized list of destinations to be configured on a DID(s). Destinations not present in the request will be automatically deleted from the corresponding DIDs destinations.

IDs*

An array of unique identifies of DIDs to update

destinations (Destination)

Array of destinations to be configured for the DIDs

Response Type

Void

Errors

HTTP Status CodeError DescriptionException Class
403
Request failed. The feature is disabled for the account.
curl -X POST \
  --url 'https://api.wavix.com/v1/mydids/update_destinations?appid=appid' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "IDs": [
    111,
    234
  ]
}'