---
title: "Rotate a named OIDC key."
method: POST
path: "/identity/oidc/key/{name}/rotate"
tags: ["identity"]
---

# Rotate a named OIDC key.

`POST /identity/oidc/key/{name}/rotate`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/lensesio/apis/hashicorp-vault-api/docs/identity/oidc/key/:name/rotate/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- IdentityOidcKeyRotateRequest
  - `verification_ttl` integer: Controls how long the public portion of a key will be available for verification after being rotated. Setting verification_ttl here will override the verification_ttl set on the key.

## Response `200`

OK

---

[API](https://skmtc.dev/lensesio/apis/hashicorp-vault-api.md) - [All operations](https://skmtc.dev/lensesio/apis/hashicorp-vault-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lensesio/apis/hashicorp-vault-api/revisions/bd8194de0697?raw)
