---
search:
  tags:
    - Host
    - POST
seo:
  description: >-
    Only the Athena platform's own keys for this event… Reference for the POST
    /api/admin/host/credential/revoke endpoint in the Athena Attack/Defence
    Admin API.
sidebar:
  label: Revoke the event host's credential up to and including a generation
  badge: POST
title: Revoke the event host's credential up to and including a generation
type: openapi-operation
---
Only the Athena platform's own keys for this event may call this, as part of provisioning its host. An organizer API key is refused with 403.

`POST /api/admin/host/credential/revoke`

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

- `generation` (integer, required)

Request body example:

```json
{
  "generation": 1
}
```

**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
{
  "revokedGeneration": 0,
  "revoked": true
}
```
