Update RevShare Campaign
Renames a campaign, changes its note or its tags. Same as Edit on the Campaigns page. Fields left out keep their current value.
tags replaces the whole tag list with tag names from your tag list (Campaigns -> Tags); unknown names are rejected and tags are not created here. Send an empty array to clear the tags.
Returns the updated campaign row.
Errors (status: "error", HTTP 200):
404Campaign not found.422Unknown tag: <name>orIncorrect tags: array of tag names.403Access denied: missing / unknown key, or the account is not an active partner.429Rate limit exceeded (30 writes per minute per key, see theRetry-Afterheader).503Service is temporarily unavailable: the platform did not answer in time. The action may still have been applied, check the matching read endpoint before repeating it.
Tags
tags is an array of tag names from your tag list (Campaigns -> Tags) and replaces the whole list. Names are matched case-insensitively. An unknown name answers 422 Unknown tag: <name>; tags are not created through the API. Send [] to remove all tags.
Errors
Authorizations
API key from the partner cabinet, Tools -> API (https://partners.onlytraffic.com/tools/api): up to 5 named keys per account, each Full or Read-only, ot_partners_ prefix, shown once at creation. Raw value or Bearer form. Read-only keys cannot call the POST endpoints (403 This API key is read-only); expired or revoked keys get 403 Error! Access denied.