Backend API
Update a JWT template
cURL
curl --request PATCH \ --url https://api.wacht.dev/jwt-templates/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>", "description": "<string>", "claims": {}, "ttl": 15768030, "is_default": true }'
{ "id": "<string>", "name": "Default JWT Template", "description": "<string>", "claims": { "sub": "{{user.id}}", "email": "{{user.email}}", "org_id": "{{user.organization_id}}" }, "ttl": 3600, "is_default": true, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }
60 <= x <= 31536000