POST
/v1/mgmt/jwt/update

Authorization

Descope Project ID and Management Key
AuthorizationBearer <token>

Project ID:Management Key as bearer token.

In: header

Request Body

application/json

jwt?string
customClaims?object

Custom claims to include in the JWT as key-value pairs. Keys must be strings; values can be strings, numbers, or booleans.

Example{ "claim-name": "claim-value" }
refreshDuration?integer
Formatint32

Updates a JWT with custom claims, using a valid management key.

This API endpoint will update a JWT with custom claims. This endpoint takes the JWT as well as the customClaims json.

curl -X POST "https://api.descope.com/v1/mgmt/jwt/update" \  -H "Content-Type: application/json" \  -d '{}'
{  "jwt": "string"}
export interface Response {jwt?: string}
Was this helpful?