Skip to main content
PATCH
Update application settings, reward type, retainer cadence, status, and/or owner max_budget on one of your team’s campaigns. Does not create earnings. Requires write:program. At least one updatable field is required. Foreign-team campaign IDs return 404.

Path Parameters

string
required
Encoded campaign id

Body Parameters

All body parameters are optional, but you must send at least one.
boolean
When true, affiliates must apply and be accepted before submitting proof. For retainer, omitted application_required is set to true; sending false returns VALIDATION_ERROR (“Retainer campaigns require an application”).
string | null
Question shown to affiliates when they apply. Maximum 10,000 characters. Set to null to clear.
string
Reward type. Valid values: flat_rate, custom, range, retainer. Switching to or from retainer is blocked when applications already exist.
number | null
Fixed reward amount. Required when switching to flat_rate or retainer. Minimum 0.01.
number | null
Range minimum. Required when reward_type is range.
number | null
Range maximum. Must be greater than or equal to reward_amount_min.
number | null
Set, change, or clear (null) the owner-only spend cap. Ignored on retainer. Lowering below current spend does not close the campaign.
string | null
monthly or weekly. Used when reward_type is retainer.
integer | string | null
Monthly day: 1-28 or "last".
string | null
Weekly weekday: monday through sunday.
string
Campaign status. Valid values: DRAFT, SCHEDULED, ACTIVE, ENDED, ARCHIVED. Only moving a retainer campaign from ENDED or ARCHIVED to ACTIVE sets retainer_resumed_at.

Response

Returns the updated campaign object. Same structure as Create Campaign.

Notes

  • Requires write:program.
  • Switching to or from retainer is blocked with a conflict when any applications exist for the campaign.
  • Retainer ignores max_budget. For retainer, omitted application_required is set to true; sending false returns VALIDATION_ERROR (“Retainer campaigns require an application”).