API reference
Admin API
Moderation and service settings: users, games, groups, vouchers, reports, audit log, free-game allowance.
Access. Admins only.
Base URL https://api.dealnight.app
| Method | Path | Operation |
|---|---|---|
| GET | /api/admin/audit | Read the audit log |
| GET | /api/admin/games | List games |
| PATCH | /api/admin/games/{id} | Update a game |
| DELETE | /api/admin/games/{id} | Delete a game |
| GET | /api/admin/groups | List groups |
| PATCH | /api/admin/groups/{id} | Update a group |
| DELETE | /api/admin/groups/{id} | Delete a group |
| GET | /api/admin/users | List users |
| PATCH | /api/admin/users/{id} | Update a user |
| GET | /api/admin/vouchers | List vouchers |
| POST | /api/admin/vouchers | Create a voucher |
| DELETE | /api/admin/vouchers/{id} | Delete a voucher |
| POST | /api/admin/users/{id}/resync-subscription | Resync a subscription |
| DELETE | /api/admin/invitations/{id} | Delete an invitation |
| GET | /api/admin/stats | Read service stats |
| PATCH | /api/admin/stats | Update service stats settings |
| GET | /api/admin/game-quota | Get the free-game allowance |
| PATCH | /api/admin/game-quota | Set the free-game allowance |
| GET | /api/admin/reports | List reported messages |
| POST | /api/admin/reports/{id}/resolve | Resolve a report |