Skip to main content

create_email_template

Function create_email_template 

Source
async fn create_email_template(
    payload: Json<EmailTemplateNew>,
    pool: Data<PgPool>,
    user: AuthUser,
) -> ControllerResult<Json<EmailTemplate>>
Expand description

POST /api/v0/main-frontend/email-templates

Creates a global template; rejects a second live one for the same type and language.