Admin

Update competition

Changed on

Update an existing competition (internal). Fails with NOT_FOUND if the slug does not exist. Fields omitted from the request keep their stored values.

post/admin/competitions/{slug}

Request

Path parameters

slugstring required

Request body

namestring
descriptionstring
start_timestring int64
end_timestring int64
prize_poolstring
prize_table_jsonstring
scoring_config_jsonstring

Response

A successful response.

prize_table_jsonstring

prize_table JSON as a string, matching GetCompetition (a "winner takes all" table is derived from prize_pool when none was configured).

scoring_config_jsonstring

scoring_config JSON as a string. Unlike GetCompetition's, this one still carries registration_code — this service is internal-only, and echoing it is how an admin reads back the code they just set.

Changes