Cancel an open battle
POST/battles/:id/cancel
Creator only, and OPEN only. A battle that already started cannot be
cancelled through this route.
The body is optional. When player_ref is supplied it is checked against the
creator; when it is omitted that check is skipped, so send it whenever the
call originates from a player action rather than from an operator.
Scope: battles:write
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 503
Battle cancelled
Malformed body, unknown field, or trailing content after the JSON value
Missing, malformed, revoked or expired API key
The key lacks battles:write, the casino is suspended, or the caller is not the creator
No such battle for this casino
The battle is no longer OPEN
The lobby is still initialising