Update campaign affiliate
Sets the creator’s default affiliate tag (spoken discount / coupon code) to an exact string. Codes must be unique inside the organization. Fires campaign_affiliate.code_updated.
PATCH
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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Campaign-affiliate (enrollment) ID from GET /campaign_affiliates
Body
application/json
New default affiliate tag. Stored lowercase.
Example:
"THEIREXISTINGCODE"