Skip to main content
PUT
/
pwa
/
v3
/
projects
/
:project_slug
/
environments
/
:environment_slug
/
jwt_templates
/
:jwt_template_type
Set
curl --request PUT \
  --url https://management.stytch.com/pwa/v3/projects/:project_slug/environments/:environment_slug/jwt_templates/:jwt_template_type \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "template_content": "<string>",
  "custom_audience": "<string>"
}
'
{
  "request_id": "<string>",
  "jwt_template": {
    "template_content": "<string>",
    "custom_audience": "<string>",
    "jwt_template_type": "SESSION"
  },
  "status_code": 123
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

project_slug
string
required
environment_slug
string
required
jwt_template_type
enum<string>
required
Available options:
SESSION,
M2M

Body

application/json

Request type

template_content
string
required
custom_audience
string
required

Response

Successful response

Response type

request_id
string
required
jwt_template
object
required
status_code
integer<int32>
required