# PATCH /api/v1/keys/:id

Auth: Bearer

HTML: https://cooperemail.com/docs/reference/keys-rename

## Summary

Rename a key. Requires key_write. A restricted key cannot rename a key with a wider permission set.

## Request

```json
{
  "name": "rotated"
}
```

## Response

The OpenAPI document does not declare a JSON response schema for this call. The summary is the contract.

## Errors

The summary and the OpenAPI operation do not name an error code.

## Idempotency

This route does not document Idempotency-Key or client_id.
