MBT Company
← All pages in this section

MAIL_TEMPLATE_DEFAULT_NOT_DELETABLE

Status: 409 Conflict

What it means

The default template cannot be deleted.

What to do

Make another template the default first, then delete this one.

Example of the answer

The API answers with this JSON (title and detail change with the situation and the language):

{
  "type": "https://docs.mbtcompany.eu/errors/mail-template-default-not-deletable",
  "title": "Conflict",
  "status": 409,
  "detail": "The default template cannot be deleted.",
  "code": "MAIL_TEMPLATE_DEFAULT_NOT_DELETABLE"
}