Appearance
Template Attachment
omnichannel.template_attachment · child table of Message Template
Fields
Every record also has id, created_at and updated_at and parent.
| Field | Label | Type | Rules |
|---|---|---|---|
filename | filename | text | required; max 255 characters |
file | file | file | required |
mime_type | mime type | text | max 120 characters |
size_bytes | size bytes | number | min 0 |
Permissions
| Role | Can |
|---|---|
omnichannel:admin | read, create, update, delete, import, export |
omnichannel:editor | read, create, update, delete |
omnichannel:viewer | read |
API
http
GET /api/omnichannel/template_attachment?<field>=<value>&limit=100&offset=0
POST /api/omnichannel/template_attachment
GET /api/omnichannel/template_attachment/:id
PATCH /api/omnichannel/template_attachment/:id
DELETE /api/omnichannel/template_attachment/:idBulk import: GET /api/_import/omnichannel/template_attachment/template (CSV template), then POST /api/_import/omnichannel/template_attachment. See REST API.