JWTs

Update a a JWT associated with a Consumer

Update a a JWT associated with a Consumer using ID.

patch/consumers/{ConsumerIdForNestedEntities}/jwt/{JWTId}

Path parameters

ConsumerIdForNestedEntitiesstring required

Consumer ID for nested entities

JWTIdstring required

ID of the JWT to lookup

Request body

algorithm'HS256' | 'HS384' | 'HS512' | 'RS256' | 'RS384' | 'RS512' | 'ES256' | 'ES384' | 'ES512' | 'PS256' | 'PS384' | 'PS512' | 'EdDSA' nullable
created_atinteger nullable

Unix epoch when the resource was created.

idstring nullable
keystring nullable
rsa_public_keystring nullable
secretstring nullable
tagsstring[]

Example request

{
  "algorithm": "HS256",
  "consumer": {
    "id": "84a73fb8-50fc-44a7-a4d5-aa17728ee83f"
  },
  "id": "75695322-e8a0-4109-aed4-5416b0308d85",
  "key": "YJdmaDvVTJxtcWRCvkMikc8oELgAVNcz",
  "secret": "C50k0bcahDhLNhLKSUBSR1OMiFGzNZ7X"
}

Response

Successfully updated JWT

algorithm'HS256' | 'HS384' | 'HS512' | 'RS256' | 'RS384' | 'RS512' | 'ES256' | 'ES384' | 'ES512' | 'PS256' | 'PS384' | 'PS512' | 'EdDSA' nullable
created_atinteger nullable

Unix epoch when the resource was created.

idstring nullable
keystring nullable
rsa_public_keystring nullable
secretstring nullable
tagsstring[]

Example response

{
  "algorithm": "HS256",
  "consumer": {
    "id": "84a73fb8-50fc-44a7-a4d5-aa17728ee83f"
  },
  "id": "75695322-e8a0-4109-aed4-5416b0308d85",
  "key": "YJdmaDvVTJxtcWRCvkMikc8oELgAVNcz",
  "secret": "C50k0bcahDhLNhLKSUBSR1OMiFGzNZ7X"
}

Changes