---
title: "End Game"
method: POST
path: "/chatrooms/{room_name}/games/end"
tags: ["games"]
---

# End Game

`POST /chatrooms/{room_name}/games/end`

End the running game, for everyone.

Two gates, and they are different questions. `require_room_access` asks
whether you are in this room at all — Canasta's equivalent had no check, so
anyone who knew a room name could end a class's game from outside.
`require_game_ender` asks whether ending a SHARED activity is yours to do:
the teacher's, or the starter's. Every other player has the header X, which
closes the panel for them and leaves the game running for the room.

## Path parameters

- `room_name` string, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored.md) · [All operations](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fluentea/aurqa-language-learning-platform-refactored/revisions/45cbba31aa7d/schema)
