marketing_templates_write
Arguments
required
The details of the template to create.
Show fields
Show fields
Boolean
Whether links in the body are shortened. Defaults to true.
String!
required
The SMS body as authored. May be empty.
[String!]
HTTPS image URLs sent with the message as MMS, at most 2. Upload a file with
uploadMarketingImage (channel SMS) to get one that fits carrier limits.String!
required
The merchant-facing name of the template.
required
The trigger context this template is valid for. Required at create; cannot be changed later.
Returns
required
The content of an SMS, as the merchant authored it.
Show fields
Show fields
Boolean!
required
Whether links in the body are shortened at send time.
String!
required
The SMS body as authored, before per-recipient substitution.
ID!
required
The id of this template.
required
Images sent with the message as MMS, in order. Dynamic product images and contact cards set in the editor are not listed.
Show fields
Show fields
String!
required
The image URL.
String!
required
The template’s legacy Mongo ObjectId (24-char hex) from before the CockroachDB migration.
String!
required
The merchant-facing name of the template.
required
The trigger context this template is valid for. Immutable after create. UNKNOWN when the stored trigger is not modeled in this API version.
Example
mutation {
createSmsTemplate(input: { ... }) {
autoShortenLinks
content
createdAt
id
legacyId
name
trigger
updatedAt
}
}