Skip to Content
Developers
Publishers

Change a publisher

Needs the publishers: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/account/publishers/{id}

Changes the fields sent and leaves the rest: name, contact, modules, payout terms and the account’s own externalId. With ifVersion, a change based on an older version is refused.

Authorization

key
headerAuthorizationBearer <traki_account_…>

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
externalId?|null
name?string
Length2 <= length <= 120
companyName?|null
contactName?|null
contactEmail?|null
contactPhone?|null
modules?

Which modules the party works in: call leads, form leads or both.

payout?

How and when the publisher is paid: method, payment terms in days, minimum payout.

ifVersion?string

The version the change is based on. When the record has changed since, the change is refused with 409 version_conflict.

Match^\d{1,16}$

Response Body

Success

application/json
  1. response
id*string
Formatuuid
externalId*string|null
code*string
name*string
kind*string
status*string
companyName*string|null
contactName*string|null
contactEmail*string|null
contactPhone*string|null
modules*
payout*
version*string
createdAt*string
updatedAt*string
Example Request
curl -X PATCH 'https://api.traki.io/v1/account/publishers/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",  "kind": "string",  "status": "string",  "companyName": "string",  "contactName": "string",  "contactEmail": "string",  "contactPhone": "string",  "modules": {    "calls": true,    "leads": true  },  "payout": {    "method": "string",    "termsDays": -9007199254740991,    "minimum": "string"  },  "version": "string",  "createdAt": "string",  "updatedAt": "string"}