Skip to Content
Developers
Destinations

Change a destination’s number, or switch it between active and standby

Needs the destinations:write scope. About scopes

Try it with a test key

Sends to https://api.traki.io

Test keys only. The key stays in this page while it is open and is never saved.

/v1/buyer/destinations/{id}

Applies at once when the account lets you edit destinations (applied), or becomes a request it approves (pendingApproval). A destination the account locked cannot be changed.

Authorization

key
headerAuthorizationBearer <traki_buyer_…>

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
value?string
Length1 <= length <= 300
label?|null
state?string
Value in"active""standby"
ifVersion?string
Lengthlength <= 40

Response Body

Success

application/json
  1. response
result*string
Value in"applied""pendingApproval"
destination*|null
changeRequestId*|null
Example Request
curl -X PATCH 'https://api.traki.io/v1/buyer/destinations/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H "Authorization: Bearer $TRAKI_KEY" \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "result": "applied",  "destination": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "type": "string",    "value": "string",    "label": "string",    "state": "active",    "priority": -9007199254740991,    "concurrencyCap": -9007199254740991,    "dailyCap": -9007199254740991,    "hoursOverride": "string",    "verifiedAt": "string",    "locked": true  },  "changeRequestId": "d5a18ebf-600a-4c49-94e6-860a60628549"}