Entidad · campaign_email_templates
Campaign Email Template Schema
Campos
Campaign Email Template Schema
Reusable email content template for SEND_EMAIL / SEND_EMAIL_SEQUENCE campaign actions. Stores subject, HTML body and optional Tiptap JSON for round-tripping into the rich-text editor.
name
1–200 caracteres
description
máx. 2000 caracteresadmite null
subject
1–500 caracteres
htmlContent
máx. 200000 caracteres
contentMode
How the body is edited/rendered: RICH_TEXT round-trips through the Tiptap editor, RAW_HTML stores pasted markup verbatim (external email templates). Absent on legacy templates — consumers fall back to sniffing the markup.
Valores
RICH_TEXTRAW_HTMLadmite null
tiptapContent
admite null
fromEmail
máx. 320 caracteresadmite null
tags
Valor por defecto: []
isSystem
System-provided templates cannot be edited or deleted.
Valor por defecto: falsesolo lectura
Ningún campo coincide con el filtro.
Endpoints estándar
Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:
GET /api/v1/campaign_email_templates— Lista, paginada y filtrableGET /api/v1/campaign_email_templates/<id>— Una entidadPOST /api/v1/campaign_email_templates— CrearPATCH /api/v1/campaign_email_templates/<id>— Actualización parcialDELETE /api/v1/campaign_email_templates/<id>— Eliminación lógicaGET /api/v1/campaign_email_templates/<id>/timeline— Auditoría y actividades