Skip to main content
PUT
/
pwa
/
v3
/
projects
/
:project_slug
/
email_templates
/
:template_id
Update
curl --request PUT \
  --url https://management.stytch.com/pwa/v3/projects/:project_slug/email_templates/:template_id \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "sender_information": {
    "from_local_part": "<string>",
    "from_domain": "<string>",
    "from_name": "<string>",
    "reply_to_local_part": "<string>",
    "reply_to_name": "<string>"
  },
  "prebuilt_customization": {
    "button_border_radius": 123,
    "button_color": "<string>",
    "button_text_color": "<string>",
    "font_family": "ARIAL",
    "text_alignment": "LEFT"
  },
  "custom_html_customization": {
    "template_type": "LOGIN",
    "html_content": "<string>",
    "plaintext_content": "<string>",
    "subject": "<string>"
  }
}
'
{
  "request_id": "<string>",
  "email_template": {
    "template_id": "<string>",
    "name": "<string>",
    "sender_information": {
      "from_local_part": "<string>",
      "from_domain": "<string>",
      "from_name": "<string>",
      "reply_to_local_part": "<string>",
      "reply_to_name": "<string>"
    },
    "prebuilt_customization": {
      "button_border_radius": 123,
      "button_color": "<string>",
      "button_text_color": "<string>",
      "font_family": "ARIAL",
      "text_alignment": "LEFT"
    },
    "custom_html_customization": {
      "template_type": "LOGIN",
      "html_content": "<string>",
      "plaintext_content": "<string>",
      "subject": "<string>"
    }
  },
  "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
template_id
string
required

Body

application/json

Request type

name
string
sender_information
object
prebuilt_customization
object
custom_html_customization
object

Response

Successful response

Response type

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