---
search:
  tags:
    - Game
    - POST
seo:
  description: >-
    Only the Athena platform's own key for this event may call this.… Reference
    for the POST /api/admin/game/end endpoint in the Athena Attack/Defence Admin
    API.
sidebar:
  label: Record the End operation; the engine drains, scores and acknowledges it
  badge: POST
title: Record the End operation; the engine drains, scores and acknowledges it
type: openapi-operation
---
Only the Athena platform's own key for this event may call this. It is part of the platform's event lifecycle, and every other key is refused with 403.

`POST /api/admin/game/end`

**Request body** (`application/json`, required)

- `operationId` (string, required)
- `trigger` (string, required)

Request body example:

```json
{
  "operationId": "string",
  "trigger": "scheduled"
}
```

**Responses**

- `200` — Success
- `401` — Unauthorized
- `403` — Response for status 403
- `409` — Response for status 409
- `422` — Validation failed
- `500` — Unhandled server error

Response example, 200:

```json
{
  "finalNotifications": {
    "deadlineAt": "2019-08-24T14:15:22Z",
    "email": "pending",
    "discord": "pending",
    "settled": true
  },
  "operationId": "string",
  "requestedAt": "2019-08-24T14:15:22Z",
  "cutoffAt": "2019-08-24T14:15:22Z",
  "drainDeadlineAt": "2019-08-24T14:15:22Z",
  "endedAt": "2019-08-24T14:15:22Z",
  "acknowledged": true,
  "finalTick": 0,
  "accepted": true
}
```
