Campaign Content & Challenges

Edit or pause a micro-challenge template

Partial update of a RECURRING template — name, window (start_dow/start_time/end_dow/end_time, or an equivalent nested schedule object), pricing, excluded creators, or status: paused to stop it producing new instances.

Affects FUTURE instances only: windows already materialized are never rewritten. When a not-yet-started instance exists for the template, it is returned as already_scheduled_instance so the caller can see what the edit did not touch. Ownership is enforced on the full (template, campaign, shop) triple — a template id from another campaign 404s.

Requires read_write scope and an Idempotency-Key; X-Dry-Run: true echoes the patch without applying it.

patch/campaigns/{campaign_id}/micro-challenges/{template_id}

Path parameters

campaign_idinteger required
template_idinteger required

Headers

Idempotency-Keystring nullable
X-Dry-Runstring nullable

Request body

namestring nullable
start_dowinteger nullable
start_timestring time nullable
end_dowinteger nullable
end_timestring time nullable
excluded_creator_idsinteger[] nullable
status'active' | 'paused' nullable

Response

Successful Response

{"stackTrail":"paths:/campaigns/{campaign_id}/micro-challenges/{template_id}:patch:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 2 revisions of this API.