---
search:
  tags:
    - Players
    - POST
seo:
  description: >-
    Suspend a player and end their sessions. Reference for the POST
    /api/admin/players/{id}/ban endpoint in the Athena Attack/Defence Admin API.
sidebar:
  label: Suspend a player and end their sessions
  badge: POST
title: Suspend a player and end their sessions
type: openapi-operation
---
`POST /api/admin/players/{id}/ban`

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

- `reason` (string)
- `expiresAt` (string<date-time> | null, required)

Request body example:

```json
{
  "reason": "string",
  "expiresAt": "2019-08-24T14:15:22Z"
}
```

**Responses**

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

Response example, 200:

```json
{
  "ok": true
}
```
