---
title: "Update a a JWT associated with a Consumer"
method: PATCH
path: "/consumers/{ConsumerIdForNestedEntities}/jwt/{JWTId}"
tags: ["JWTs"]
---

# Update a a JWT associated with a Consumer

`PATCH /consumers/{ConsumerIdForNestedEntities}/jwt/{JWTId}`

Update a a JWT associated with a Consumer using ID.

## Path parameters

- `ConsumerIdForNestedEntities` string, required
- `JWTId` string, required

## Request body

- JWT
  - `algorithm` 'HS256' | 'HS384' | 'HS512' | 'RS256' | 'RS384' | 'RS512' | 'ES256' | 'ES384' | 'ES512' | 'PS256' | 'PS384' | 'PS512' | 'EdDSA', nullable
  - `consumer` object, nullable
    - `id` string
  - `created_at` integer, nullable — Unix epoch when the resource was created.
  - `id` string, nullable
  - `key` string, nullable
  - `rsa_public_key` string, nullable
  - `secret` string, nullable
  - `tags` string[]

## Response `200`

Successfully updated JWT

- JWT
  - `algorithm` 'HS256' | 'HS384' | 'HS512' | 'RS256' | 'RS384' | 'RS512' | 'ES256' | 'ES384' | 'ES512' | 'PS256' | 'PS384' | 'PS512' | 'EdDSA', nullable
  - `consumer` object, nullable
    - `id` string
  - `created_at` integer, nullable — Unix epoch when the resource was created.
  - `id` string, nullable
  - `key` string, nullable
  - `rsa_public_key` string, nullable
  - `secret` string, nullable
  - `tags` string[]

## Other responses

- `404` — Resource does not exist

## Changes

> 7 revisions in range; 1 not diffed.

- **2025-04-04** `e07a25288f1f` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/kong/apis/kong-enterprise-admin-api/changes/consumers/:ConsumerIdForNestedEntities/jwt/:JWTId/patch.md)

---

[API](https://skmtc.dev/kong/apis/kong-enterprise-admin-api.md) · [All operations](https://skmtc.dev/kong/apis/kong-enterprise-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kong/kong-enterprise-admin-api/revisions/daef3e27adf6/schema)
