post
https://production-api.shoutaboutus.com/api/v1/campaign/template/email/create
Create a new campaign email template owned by the authenticated caller's company. subject defaults to an empty string, template_type to regular, and template_editor_mode to custom when you omit it. The endpoint returns the saved row in full.
Auth
- bearer token, account role — authentication (no throttle group). The template records
company_id = user.person.company_id.store_id, if supplied, must belong to the caller's company hierarchy (an ownership check).
Rate limit
- No rate limit.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | Required | Max 255. Must be unique among the caller's company templates and global (company_id NULL) templates. |
subject | string | Optional | Max 255. Defaults to "". |
store_id | integer | Optional | Scope the template to one store. Must be in the caller's company hierarchy (an ownership check). |
template_type | string | Optional | regular or follow_up. Defaults to regular. |
template_editor_mode | string | Optional | custom or html_editor. Defaults to custom. |
Behaviour
- Synchronous.
200 OKon success with the created model underdata.data(note the double-dataenvelope).422when validation fails (e.g. duplicatename,store_idoutside the caller's hierarchy).
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
