Generate draw
generate_drawGenerate (or regenerate) the draw and schedule. This IS the start action: the first draw moves the tournament from setup to active and closes self-signup — when the organiser says "start the tournament", call this. The result includes rounds_text — SHOW it to the organiser as-is, in whatever language they are writing to you in (it is English already, so relay it unchanged unless they are writing something else) so they can check who plays whom — and the seed that produced the draw: preview first, then confirm with that SAME seed to apply exactly the previewed draw. Free until the first result is recorded; after that this DISCARDS recorded results and requires BOTH confirm: true and discard_results: true. If the organiser asks for a format that is not supported, offer to note it with record_feedback. Optional overrides adjust the format first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Draw seed returned by the preview — pass it back with confirm: true to apply exactly the previewed draw. Omit for a fresh draw. | |
| rounds | No | ||
| confirm | No | Omit or false: return a preview of what would change. True: apply it. | |
| seeding | No | ||
| request_id | No | Optional idempotency id — retrying a call with the same id never applies it twice | |
| group_count | No | ||
| tournament_key | Yes | The tournament's organiser key (starts with tk_) | |
| discard_results | No | Required (true) when results already exist — separate acknowledgement that this redraw destroys them | |
| points_per_match | No | ||
| advance_per_group | No | ||
| third_place_match | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | Yes | ||
| matches | Yes | ||
| preview | No | True when this is a preview — nothing was changed | |
| summary | Yes | What happened, in one line | |
| rounds_text | Yes | ||
| discarded_results | Yes |