Skip to main content

Create an email template group.

POST/api/v1/email-template-groupsemail_templates:write

The parent group, when given, must be an email group. A name must be unique among its siblings (ignoring case).

Scopeemail_templates:write
AsynchronousNo
MCP toolcreate_email_template_group
Portal permissionscreate_email_template_groups

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonEmailTemplateGroupCreateInput

Responses​

StatusDescriptionBody
201Success.application/json EmailTemplateGroup or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409already_exists, idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

EmailTemplateGroup​

FieldTypeRequiredDescription
descriptionstring or nullRequired
email_template_group_idstringRequired
namestring or nullRequired
parent_email_template_group_idstring or nullRequiredThe parent group; null for a top-level group.

EmailTemplateGroupCreateInput​

FieldTypeRequiredDescription
descriptionstring or nullOptional
namestringRequired
parent_email_template_group_idstring or nullOptional