Destinations
Change a destination’s number, or switch it between active and standby
Needs the destinations:write scope. About scopes
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.
keyheader
AuthorizationBearer <traki_buyer_…>id*stringFormat
uuidapplication/json- body
value?stringLength
1 <= length <= 300label?|nullstate?stringValue in
"active""standby"ifVersion?stringLength
length <= 40Success
application/json- response
result*stringValue in
"applied""pendingApproval"destination*|nullchangeRequestId*|nullcurl -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"}