Call campaigns
Change a call campaign
Needs the campaigns:write scope. About scopes
Changes the fields sent and leaves the rest. With ifVersion, a change based on an older version is refused. Archived campaigns cannot be changed.
keyheader
AuthorizationBearer <traki_account_…>id*stringFormat
uuidapplication/json- body
externalId?|nullname?stringLength
2 <= length <= 120vertical?stringLength
2 <= length <= 80buyerPrice?numberWhat a buyer pays for a billable call.
Range
0 <= value <= 100000publisherPayout?numberWhat a publisher is paid for a billable call, unless its own terms say otherwise.
Range
0 <= value <= 100000billableAfterSec?integerConnected seconds after which a call is billable.
Range
0 <= value <= 3600routingMode?stringHow a call picks among the campaign’s buyers.
Value in
"weighted""priority""round_robin""bid"ifVersion?stringThe version the change is based on. When the record has changed since, the change is refused with 409 version_conflict.
Match
^\d{1,16}$Success
application/json- response
id*stringFormat
uuidexternalId*string|nullcode*stringname*stringvertical*stringstatus*stringroutingMode*stringbuyerPrice*stringpublisherPayout*stringbillableAfterSec*integerRange
-9007199254740991 <= value <= 9007199254740991buyers*array<>publishers*array<>version*stringcreatedAt*stringupdatedAt*stringcurl -X PATCH 'https://api.traki.io/v1/account/call-campaigns/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H "Authorization: Bearer $TRAKI_KEY" \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "code": "string", "name": "string", "vertical": "string", "status": "string", "routingMode": "string", "buyerPrice": "string", "publisherPayout": "string", "billableAfterSec": -9007199254740991, "buyers": [ { "buyer": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "name": "string" }, "tier": -9007199254740991, "bid": "string", "capDay": -9007199254740991, "capMonth": -9007199254740991 } ], "publishers": [ { "publisher": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "name": "string" }, "status": "string", "payout": "string" } ], "version": "string", "createdAt": "string", "updatedAt": "string"}