---
title: "Changes to Rotate API Key"
method: POST
path: "/v2/api-key/{api_key_id}/rotate-secret"
---

# Changes to Rotate API Key

`POST /v2/api-key/{api_key_id}/rotate-secret`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 1 of 8 revisions.

- **2026-07-31** `e742454808ee` — 1 warning

## Changes

- **2026-07-31** `e742454808ee` — 1 warning
  - added the new `nats_pdp_config` enum value to the `owner_type` response property for the response status `200`

---

[Operation](https://skmtc.dev/permit/apis/permit-io-api/docs/v2/api-key/:api_key_id/rotate-secret/post.md) · [API](https://skmtc.dev/permit/apis/permit-io-api.md) · [Page](https://skmtc.dev/permit/apis/permit-io-api/changes/v2/api-key/:api_key_id/rotate-secret/post)
