Update email template details
Update the details of an email template by its ID.
Body
Required
-
The template of the email subject.
-
The template of the email body.
-
The reply name template of the email. If not provided, the target email address will be used. (The render logic may differ based on the email provider.)
-
The send from name template of the email. If not provided, the default Logto email address will be used. (The render logic may differ based on the email provider.)
PATCH
/api/email-templates/{id}/details
curl \
--request PATCH 'https://[tenant_id].logto.app/api/email-templates/{id}/details' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"subject":"string","content":"string","contentType":"string","replyTo":"string","sendFrom":"string"}'
Request examples
{
"subject": "string",
"content": "string",
"contentType": "string",
"replyTo": "string",
"sendFrom": "string"
}
Response examples (200)
{
"tenantId": "string",
"id": "string",
"languageTag": "string",
"templateType": "SignIn",
"details": {
"subject": "string",
"content": "string",
"contentType": "string",
"replyTo": "string",
"sendFrom": "string"
},
"createdAt": 42.0
}