POST
/v1/mgmt/jwt/templates/updateAuthorization
Descope Project ID and Management Key AuthorizationBearer <token>
Project ID:Management Key as bearer token.
In: header
Request Body
application/json
template?object
Update an existing JWT template by id. Same strict validation as CreateJwtTemplate runs first; on failure the existing template is unchanged.
curl -X POST "https://api.descope.com/v1/mgmt/jwt/templates/update" \ -H "Content-Type: application/json" \ -d '{}'{ "template": { "id": "string", "name": "string", "description": "string", "template": {}, "source": "string", "tags": [ "string" ], "authSchema": "string", "type": "string", "conformanceIssuer": true, "autoDCT": true, "enforceIssuer": true, "emptyClaimPolicy": "string", "overrideSubject": true, "issuerType": "string", "omitCustomClaimsFromDSR": true, "addJti": true, "excludePermissions": true }}export interface Response {template?: {id?: stringname?: stringdescription?: stringtemplate?: {}source?: stringtags?: string[]authSchema?: stringtype?: stringconformanceIssuer?: booleanautoDCT?: booleanenforceIssuer?: booleanemptyClaimPolicy?: stringoverrideSubject?: booleanissuerType?: stringomitCustomClaimsFromDSR?: booleanaddJti?: booleanexcludePermissions?: boolean}} Was this helpful?
Load JWT Template POST
Load a single JWT template by id.
Validate JWT Template POST
Dry-run validate a JWT template without saving. Pass either an inline `template` payload (to validate before create/update) or an existing `id` (to lint a saved template). Returns a list of `ValidationIssue`s — empty list means valid.