Swap partners
swap_partnersExchange two players' places. Fixed-pair doubles: swaps partners between two pairs permanently (name one player from each pair). Americano/mexicano: pass round to swap two players' places in ONE unplayed round — the courtside patch for a late arrival, an injury, or two friends who want a game together. One of them may be sitting that round, which is how you put a late arrival on court. Preview first, confirm to apply: the preview names any partnership or meeting the swap would repeat. Results already played never move.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| round | No | Americano/mexicano only: which round to patch. Omit to swap the next unplayed round. | |
| confirm | No | Omit or false: return a preview of what would change. True: apply it. | |
| player_a | Yes | ||
| player_b | Yes | ||
| request_id | No | Optional idempotency id — retrying a call with the same id never applies it twice | |
| tournament_key | Yes | The tournament's organiser key (starts with tk_) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pairs | No | ||
| round | No | ||
| preview | No | True when this is a preview — nothing was changed | |
| summary | Yes | What happened, in one line | |
| repeats_meeting | No | ||
| repeats_partnership | No |