Replace player (substitution)
replace_playerA substitute takes over a player's spot. During play: slot takeover — completed results stay, the change is shown ("Anna, for Kristjan from R3"). Before the first result: choose mode slot_swap (default) or regenerate (re-pair and redraw using levels). Unknown substitute names are added to the roster automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| in_player | 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_) | |
| out_player_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entry | Yes | ||
| preview | No | True when this is a preview — nothing was changed | |
| summary | Yes | What happened, in one line |