Appearance
Template Version
omnichannel.template_version · child table of Message Template
Fields
Every record also has id, created_at and updated_at and parent.
| Field | Label | Type | Rules |
|---|---|---|---|
version_no | version no | number | required; min 1 |
subject | subject | text | max 500 characters |
body | body | longtext | required |
design_json | design json | json | |
variables | variables | json | |
note | note | text | max 300 characters |
created_by | created by | link → core.user |
Permissions
| Role | Can |
|---|---|
omnichannel:admin | read, create, update, delete, import, export |
omnichannel:editor | read, create |
omnichannel:viewer | read |
API
http
GET /api/omnichannel/template_version?<field>=<value>&limit=100&offset=0
POST /api/omnichannel/template_version
GET /api/omnichannel/template_version/:id
PATCH /api/omnichannel/template_version/:id
DELETE /api/omnichannel/template_version/:idBulk import: GET /api/_import/omnichannel/template_version/template (CSV template), then POST /api/_import/omnichannel/template_version. See REST API.