Skip to main content
PATCH
cURL
Sets the creator’s default affiliate tag (the spoken discount / coupon code) to an exact string. Use this after a creator joins if you want to keep the code they already say on camera, or to migrate an existing roster onto a revenue campaign. Codes are unique inside your organization. A rename fires campaign_affiliate.code_updated so any coupons you mint from the webhook tag stay in sync. For 300+ creators, prefer Bulk Update Campaign Affiliates instead of looping this endpoint (the public API also enforces a 2-second gap between requests).

Path Parameters

Request Body

Request Example

Response Example

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.

Path Parameters

id
integer
required

Campaign-affiliate (enrollment) ID from GET /campaign_affiliates

Body

application/json
tag
string
required

New default affiliate tag. Stored lowercase.

Example:

"THEIREXISTINGCODE"

Response

Tag updated

success
boolean
Example:

true

id
integer
Example:

3490313

tag
string
Example:

"theirexistingcode"