Skip to main content
POST
/
mydids
/
update-destinations
Update inbound call destinations
curl --request POST \
  --url https://api.wavix.com/v1/mydids/update-destinations \
  --header 'Content-Type: application/json' \
  --data '{
  "ids": [
    1,
    2,
    3
  ],
  "destinations": [
    {
      "destination": "32882",
      "priority": 1,
      "transport": 5,
      "trunk_id": 3107
    }
  ],
  "sms_relay_url": "https://examples.com/sms-webhook"
}'
{
  "success": true
}

Authorizations

appid
string
query
required

An API key to authorize your request

Body

application/json

Inbound call routing to be configured

ids
integer[]
required

An array of unique identifiers of DIDs to update

Example:
[1, 2, 3]
destinations
DIDdestination · object[]
required

An array of inbound call destinations to be set up on the phone number

sms_relay_url
string<uri>
required

The URL to which SMS messages will be relayed for the specified DIDs

Example:

"https://examples.com/sms-webhook"

Response

success
boolean
required

Indicates if the operation is successful

Example:

true

I