API reference
Games API
Create, update and run games: status, blind levels, co-hosts, invitations, photos, results.
Access. Signed-in user. Changes need host rights on the game (the host, a co-host or an admin).
Base URL https://api.dealnight.app
| Method | Path | Operation |
|---|---|---|
| POST | /api/games | Create a game |
| GET | /api/games | List your games |
| GET | /api/games/discover | Discover public games |
| GET | /api/games/{id} | Get a game |
| PATCH | /api/games/{id} | Update a game |
| DELETE | /api/games/{id} | Delete a game |
| POST | /api/games/{id}/status | Change the game status |
| PUT | /api/games/{id}/blind-levels | Replace the blind levels |
| GET | /api/games/{id}/cohosts | List co-hosts |
| POST | /api/games/{id}/cohosts | Add a co-host |
| DELETE | /api/games/{id}/cohosts | Remove a co-host |
| POST | /api/games/{id}/cohosts/bulk | Add several co-hosts |
| POST | /api/games/{id}/invitations | Add invitees |
| GET | /api/games/{id}/invitations | List invitations |
| POST | /api/games/{id}/invitations/send | Send invitations |
| POST | /api/games/{id}/invitations/{invitationId} | Update an invitation |
| DELETE | /api/games/{id}/invitations/{invitationId} | Remove an invitation |
| GET | /api/games/{id}/photos | List photos |
| POST | /api/games/{id}/photos | Upload a photo |
| DELETE | /api/games/{id}/photos | Delete a photo |
| GET | /api/games/{id}/results | Get the results |
| POST | /api/games/{id}/results | Record the results |
| POST | /api/games/{id}/reminders | Resend invitations to invitees |