---
search:
  tags:
    - Config
    - POST
seo:
  description: >-
    A revert that changes game settings or the schedule is… Reference for the
    POST /api/admin/config/revert endpoint in the Athena Attack/Defence Admin
    API.
sidebar:
  label: Restore settings through a new versioned operation
  badge: POST
title: Restore settings through a new versioned operation
type: openapi-operation
---
A revert that changes game settings or the schedule is accepted only from the organizer panel's key; an organizer key is refused with 403 for it.

`POST /api/admin/config/revert`

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

- `operationId` (string, required)
- `expectedVersion` (integer, required)
- `version` (integer, required)

Request body example:

```json
{
  "operationId": "string",
  "expectedVersion": 1,
  "version": 1
}
```

**Responses**

- `200` — Success
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `409` — Conflict
- `422` — Validation failed
- `500` — Unhandled server error

Response example, 200:

```json
{
  "reverted": true,
  "version": 0,
  "operationId": "string",
  "synchronized": true
}
```
