---
search:
  tags:
    - Discord
    - PATCH
seo:
  description: >-
    Turn the Discord integration on or off. Reference for the PATCH
    /api/admin/discord endpoint in the Athena Attack/Defence Admin API.
sidebar:
  label: Turn the Discord integration on or off
  badge: PATCH
title: Turn the Discord integration on or off
type: openapi-operation
---
`PATCH /api/admin/discord`

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

- `enabled` (boolean, required)

Request body example:

```json
{
  "enabled": true
}
```

**Responses**

- `200` — Success
- `401` — Unauthorized
- `422` — Validation failed
- `500` — Unhandled server error

Response example, 200:

```json
{
  "enabled": true
}
```
