clerk.update_jwt_template
Update an existing JWT template in a connected Clerk application.
Call clerk.get_connected_accounts first. Pass clerk_instance_id to target a specific connection, or omit it to use the default account.
Returns the updated template summary.
Cost = 8 tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional new unique template name. | |
| claims | No | Optional new JWT claims template as a JSON object. | |
| lifetime | No | Optional new token lifetime in seconds (30–315360000). | |
| signing_key | No | Optional custom signing private key. | |
| template_id | Yes | Clerk JWT template id (jtmp_...) to retrieve, update, or delete. | |
| clerk_instance_id | No | Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account. | |
| signing_algorithm | No | Optional custom signing algorithm. | |
| allowed_clock_skew | No | Optional new allowed clock skew in seconds (0–300). | |
| custom_signing_key | No | Optional flag to enable or disable a custom signing key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jwt_template | No | Updated Clerk JWT template summary. |