API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · campaign_email_templates

Campaign Email Template Schema

ID du schéma
campaign_email_template
Collection
campaign_email_templates
Autorisations
  • Lirecampaign_email_template_view
  • Créercampaign_email_template_manage
  • Modifiercampaign_email_template_manage
  • Supprimercampaign_email_template_manage

Champs

Campaign Email Template Schema

campaign_email_templates4 autorisations

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.

namestringobligatoire
1–200 caractères
descriptionstringfacultatif
max. 2000 caractèresnullable
subjectstringobligatoire
1–500 caractères
htmlContentstringobligatoire
max. 200000 caractères
contentModestringfacultatif

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.

RICH_TEXTRAW_HTML
nullable
tiptapContentobjectfacultatif
nullable
fromEmailstringfacultatif
max. 320 caractèresnullable
tagsstring[]facultatif
Par défaut : []
isSystembooleanfacultatif

System-provided templates cannot be edited or deleted.

Par défaut : falselecture seule

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/campaign_email_templates — Liste, paginée et filtrable
  • GET /api/v1/campaign_email_templates/<id> — Une entité
  • POST /api/v1/campaign_email_templates — Créer
  • PATCH /api/v1/campaign_email_templates/<id> — Mise à jour partielle
  • DELETE /api/v1/campaign_email_templates/<id> — Suppression logique
  • GET /api/v1/campaign_email_templates/<id>/timeline — Audit et activités

Recherche