Lead campaigns
Pause a lead campaign
Needs the campaigns:write scope. About scopes
Stops taking new leads; only an active campaign can be paused.
keyheader
AuthorizationBearer <traki_account_…>id*stringFormat
uuidSuccess
application/json- response
id*stringFormat
uuidexternalId*string|nullcode*stringname*stringvertical*stringstatus*stringdistribution*stringsaleType*stringsaleLimit*integerRange
-9007199254740991 <= value <= 9007199254740991buyerPrice*stringpublisherPayout*stringcurrency*stringbuyers*array<>publishers*array<>version*stringcreatedAt*stringupdatedAt*stringcurl -X POST 'https://api.traki.io/v1/account/lead-campaigns/497f6eca-6276-4993-bfeb-53cbbbba6f08/pause' \ -H "Authorization: Bearer $TRAKI_KEY"Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "code": "string", "name": "string", "vertical": "string", "status": "string", "distribution": "string", "saleType": "string", "saleLimit": -9007199254740991, "buyerPrice": "string", "publisherPayout": "string", "currency": "string", "buyers": [ { "buyer": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "name": "string" }, "priority": -9007199254740991, "weight": -9007199254740991, "price": "string", "status": "string" } ], "publishers": [ { "publisher": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "name": "string" }, "status": "string", "testMode": true } ], "version": "string", "createdAt": "string", "updatedAt": "string"}Change a lead campaign PATCH
Changes the fields sent and leaves the rest. An exclusive campaign sells each lead once (422 sale_limit for a sale limit above 1). With `ifVersion`, a change based on an older version is refused. Archived campaigns cannot be changed.
Resume or activate a lead campaign POST
Takes leads again. A draft is activated when it is ready (422 campaign_not_ready lists what is missing).