Update affiliate
Change an affiliate's details, or its status (active, pending, suspended…). Status changes email the affiliate as in the dashboard.
PATCH
Requires scope affiliates:write.
apiKeyheader
AuthorizationBearer <token>An API key: pk_company_… (network), pk_aff_… (affiliate) or pk_adv_… (advertiser). X-Api-Key works too.
publicId*integerFormat
int32application/json- body
firstName?string|nulllastName?string|nullemail?string|nullcompany?string|nullmanager?string|nullstatus?string|nullcountry?string|nulltelegram?string|nullnotes?string|nullOK
application/json- response
data?curl -X PATCH 'https://trakcrt.com/api/v1/network/affiliates/0' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "data": { "publicId": 0, "name": "string", "firstName": "string", "lastName": "string", "email": "string", "company": "string", "status": "string", "manager": "string", "country": "string", "phone": "string", "telegram": "string", "timeZone": "string", "insertionOrderRequired": true, "insertionOrderSignedAt": "2019-08-24T14:15:22Z", "planLocked": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}