ReDoc documentation
Retrieve custom email templates matching the given search criteria.
200 Success.
401 Unauthorized
Unexpected error
{- "items": [
- {
- "added_at": "string",
- "modified_at": "string",
- "template_code": "string",
- "template_id": 0,
- "template_subject": "string",
- "template_type": "string"
}
], - "search_criteria": {
- "current_page": 0,
- "filter_groups": [
- {
- "filters": [
- {
- "condition_type": "string",
- "field": "string",
- "value": "string"
}
]
}
], - "page_size": 0,
- "sort_orders": [
- {
- "direction": "string",
- "field": "string"
}
]
}, - "total_count": 0
}Create a custom email template. Server-assigned fields (template_id, added_at, modified_at) and the strict-mode flag (is_legacy = 0) are set by the service; any value supplied for them is ignored. The template_code must be unique. Returns the persisted template, including its server-assigned template_id (usable as-is with POST /V1/custom-email/send).
required | object (custom-email-template-data-email-template-detail-interface) Full custom email template DTO returned by the single-resource (detail) read. Extends the lean list DTO with the heavy content fields (template_text, template_styles) that the list endpoint deliberately omits. The WebAPI serializer renders fields from the declared return type, so exposing these here — and only here — keeps GET /V1/custom-email/templates a summary while GET /V1/custom-email/templates/{id} returns the complete template. |
200 Success.
400 Bad Request
401 Unauthorized
Unexpected error
{- "template": {
- "added_at": "string",
- "modified_at": "string",
- "template_code": "string",
- "template_id": 0,
- "template_styles": "string",
- "template_subject": "string",
- "template_text": "string",
- "template_type": "string"
}
}{- "added_at": "string",
- "modified_at": "string",
- "template_code": "string",
- "template_id": 0,
- "template_styles": "string",
- "template_subject": "string",
- "template_text": "string",
- "template_type": "string"
}