---
title: "CRUD operations on OIDC Roles"
method: POST
path: "/identity/oidc/role/{name}"
tags: ["identity"]
---

# CRUD operations on OIDC Roles

`POST /identity/oidc/role/{name}`

## Request body

- IdentityOidcRoleRequest
  - `client_id` string — Optional client_id
  - `key` string, required — The OIDC key to use for generating tokens. The specified key must already exist.
  - `template` string — The template string to use for generating tokens. This may be in string-ified JSON or base64 format.
  - `ttl` integer — TTL of the tokens generated against the role.

## Response `200`

OK

---

[API](https://skmtc.net/lensesio/apis/hashicorp-vault-api.md) · [All operations](https://skmtc.net/lensesio/apis/hashicorp-vault-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lensesio/hashicorp-vault-api/revisions/bd8194de0697/schema)
