Skip to main content
PATCH
cURL
Sets default affiliate tags for many creators in one request. Built for spoken-code migrations (keep the codes creators already use when you move them onto a revenue campaign). Each row is independent: valid rows still update when another row fails. Codes must be unique inside your organization. Each successful rename fires campaign_affiliate.code_updated. Maximum 300 affiliates per request.

Request Body

Request Example

Response Example

All rows succeeded:
Partial failure (HTTP 422 — successful rows are still saved):

Authentication

Send your organization’s public API key as a Bearer token. Viewer (read-only) keys cannot call this. See Rate Limits & Authentication.

Error Responses

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
affiliates
object[]
required
Maximum array length: 300

Response

Every row updated

success
boolean
Example:

true

updated
object[]
errors
object[]