Close an open lobby
POST/admin/battles/:id/cancel
The one write on this surface. Only a battle that is still OPEN can be
cancelled — once it has started there are recordings in flight, and a status
change would leave connected viewers watching a battle the server has already
buried.
It goes through the same path the casino's own cancel does: the transition is published, and every viewer of that lobby is told.
No body. There is nothing to say beyond the request itself, and an optional reason would be an audit field with no audit behind it.
Permission: battles.write
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 503
Cancelled, with the battle as it now stands
X-Tenant-Id is missing
No session cookie, or it expired
The role lacks battles.write, or the caller is not a member of this casino
No such battle for this casino
The battle is no longer OPEN
The lobby is not available on this instance