---
search:
  tags:
    - Discord
    - PUT
seo:
  description: >-
    Set the Discord role that may run the bot's staff commands. Reference for
    the PUT /api/admin/discord/staff-role endpoint in the Athena Attack/Defence
    Admin API.
sidebar:
  label: Set the Discord role that may run the bot's staff commands
  badge: PUT
title: Set the Discord role that may run the bot's staff commands
type: openapi-operation
---
`PUT /api/admin/discord/staff-role`

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

- `roleId` (string | null, required)

Request body example:

```json
{
  "roleId": "string"
}
```

**Responses**

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

Response example, 200:

```json
{
  "staffRoleId": "string"
}
```
