Replace email templates
Create or replace a list of email templates. If an email template with the same language tag and template type already exists, its details will be updated.
PUT
/api/email-templates
curl \
--request PUT https://[tenant_id].logto.app/api/email-templates \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"templates":[{"languageTag":"string","templateType":"SignIn","details":{"subject":"string","content":"string","contentType":"string","replyTo":"string","sendFrom":"string"}}]}'
Request examples
{
"templates": [
{
"languageTag": "string",
"templateType": "SignIn",
"details": {
"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
}
]