Destinations API

update values

PUT /api/rest/admin/destinations/:id

Parameters

Name Description
data[type] Resource type (destinations)
data[id] Destination ID
data[attributes][enabled] Enabled
data[attributes][next-rate] Next rate
data[attributes][connect-fee] Connect fee
data[attributes][initial-interval] Initial interval
data[attributes][next-interval] Next interval
data[attributes][dp-margin-fixed] Dp margin fixed
data[attributes][dp-margin-percent] Dp margin percent
data[attributes][initial-rate] Initial rate
data[attributes][asr-limit] Asr limit
data[attributes][acd-limit] Acd limit
data[attributes][short-calls-limit] Short calls limit
data[attributes][prefix] Prefix
data[attributes][reject-calls] Reject calls
data[attributes][use-dp-intervals] Use dp intervals
data[attributes][valid-from] Valid from
data[attributes][valid-till] Valid till
data[attributes][external-id] External id
data[attributes][routing-tag-ids] Routing tag ids
data[attributes][dst-number-min-length] Dst number min length
data[attributes][dst-number-max-length] Dst number max length
data[attributes][reverse-billing] Reverse billing
data[attributes][profit-control-mode-id] Profit control mode id
data[attributes][rate-policy-id] Rate policy id

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjgxLCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzY3MzU4NTYzfQ.tOni4SBWPTEjnG-r3s8M7SIwA2r009mE7Ix42JcHmds
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/destinations/4201540

Body

{"data":{"type":"destinations","id":4201540,"attributes":{"enabled":false}}}

Response

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/vnd.api+json
vary: Accept
etag: W/"e458e8614ccd3ece43acb26e58bde847"
cache-control: max-age=0, private, must-revalidate
x-request-id: 401420ff-4ed5-4155-b17b-adb8a885b033
x-runtime: 0.012911
content-length: 1486

Status

200 OK

Body

{
  "data": {
    "id": "4201540",
    "type": "destinations",
    "links": {
      "self": "http://example.org/api/rest/admin/destinations/4201540"
    },
    "attributes": {
      "enabled": false,
      "next-rate": "0.0",
      "connect-fee": "0.0",
      "initial-interval": 60,
      "next-interval": 60,
      "dp-margin-fixed": "0.0",
      "dp-margin-percent": "0.0",
      "initial-rate": "0.0",
      "asr-limit": 0.0,
      "acd-limit": 0.0,
      "short-calls-limit": 0.0,
      "prefix": "9",
      "reject-calls": false,
      "use-dp-intervals": false,
      "valid-from": "2026-01-01T12:46:03.922Z",
      "valid-till": "2026-01-03T12:46:03.923Z",
      "external-id": 9,
      "routing-tag-ids": [

      ],
      "dst-number-min-length": 0,
      "dst-number-max-length": 100,
      "reverse-billing": false,
      "profit-control-mode-id": 2,
      "rate-policy-id": 1,
      "routing-tag-mode-id": 0
    },
    "relationships": {
      "rate-group": {
        "links": {
          "self": "http://example.org/api/rest/admin/destinations/4201540/relationships/rate-group",
          "related": "http://example.org/api/rest/admin/destinations/4201540/rate-group"
        }
      },
      "country": {
        "links": {
          "self": "http://example.org/api/rest/admin/destinations/4201540/relationships/country",
          "related": "http://example.org/api/rest/admin/destinations/4201540/country"
        }
      },
      "network": {
        "links": {
          "self": "http://example.org/api/rest/admin/destinations/4201540/relationships/network",
          "related": "http://example.org/api/rest/admin/destinations/4201540/network"
        }
      },
      "destination-next-rates": {
        "links": {
          "self": "http://example.org/api/rest/admin/destinations/4201540/relationships/destination-next-rates",
          "related": "http://example.org/api/rest/admin/destinations/4201540/destination-next-rates"
        }
      }
    }
  }
}