---
search:
  tags:
    - Host
    - PUT
seo:
  description: >-
    Only the Athena platform's own keys for this event may call… Reference for
    the PUT /api/admin/host/credential endpoint in the Athena Attack/Defence
    Admin API.
sidebar:
  label: Pin the event host's client certificate for a generation
  badge: PUT
title: Pin the event host's client certificate for 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.

`PUT /api/admin/host/credential`

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

- `generation` (integer, required)
- `fingerprint` (string, required)
- `expiresAt` (string<date-time>, required)

Request body example:

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

**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
{
  "generation": 0,
  "fingerprint": "string",
  "expiresAt": "string",
  "activated": true
}
```
