Skip to main content

Update

POST /v1/competitions/update Changes any rule of a competition at any time before it ends, also while it runs. Pass the id and only the fields you want to change, with the same values as in Create a competition. Each real change raises rules_version by one, is recorded in the rules history with the phase it happened in and your note, and is sent as the competition.updated webhook. Fields sent with their current value are not a change; if nothing changes, the competition is returned as it is.
  • Changing duration_hours while running moves ends_at to started_at plus the new duration.
  • Switching enrollment to all_users enters every platform user.
  • New metrics, minimums and wallet rules apply from the next standings computation.
string
required
The competition id.
string
Why you changed it, at most 500 characters. Shown in the rules history and the webhook.
any
The fields to change. At least one.
Returns the competition object with its rules history.

Cancel

POST /v1/competitions/cancel Cancels a scheduled, waiting or running competition. Its status becomes cancelled, it no longer counts towards your 5 open competitions, and the competition.ended webhook is sent with "cancelled": true and no results.
string
required
The competition id.
Returns the competition object with status cancelled.

Errors

See Errors for the full list.