Create email template
Changed onCreates a custom email template for the project. Custom email templates are a SUPERAGENT feature: requests from a HOBBY project owner are rejected with 403, and HOBBY projects always send the built-in default templates regardless of any previously saved custom rows. Every project is created with one template per type, so customizing one is usually a PUT; creating a type the project already has returns 409. Valid template types: welcome, confirmation, password_reset, password_changed
Request
- Base URLhttps://api.volcano.dev
- Auth
- HTTP bearer
- or HTTP bearer
Path parameters
Project ID
Request body
Type of email template
Subject template. After Go template whitespace trimming, literal interior carriage returns or newlines return 400. Outer whitespace and trailing block-scalar newlines are allowed.
HTML template body. Available placeholders:
- {{.Token}} - The confirmation/reset token
- {{.ProjectName}} - The project name
- {{.Email}} - User's email address
Plain text template body (same placeholders as HTML)
Example request
{
"subject": "Confirm your email"
}Response
Template created
Custom email template
HTML template with placeholders
Plain text template with placeholders
Example response
{
"subject": "Confirm your email address"
}Changes
- info
the endpoint scheme security
ProjectAccessTokenwas added to the API
- info
- breaking
added the new path request parameter
id - breaking
added the new required request property
html_body
22 more changes in this revision
- breaking