API ReferenceManagementJWT Templates
POST
/v1/mgmt/jwt/templates/library/apply

Authorization

Descope Project ID and Management Key
AuthorizationBearer <token>

Project ID:Management Key as bearer token.

In: header

Request Body

application/json

libraryEntryId*string
Length1 <= length <= 254
nameOverride?string

Optional overrides applied on top of the library entry before save.

Lengthlength <= 254
descriptionOverride?string
Lengthlength <= 500
tagsOverride?array<string>
string
templateOverride?object

Materialise a library entry as a new project JWT template. Optional overrides let the caller pick a different name, swap tags, or amend the claim body before save. Strict validation runs as if it were a create.

curl -X POST "https://api.descope.com/v1/mgmt/jwt/templates/library/apply" \  -H "Content-Type: application/json" \  -d '{    "libraryEntryId": "string"  }'
{  "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?