Save notification template
PUT
/ admin/ v1/ stores/ {store_id}/ notifications/ messages/ {message}/ templates/ {channel}/ {locale}- notifications:manage
Save the store's version of a template (one channel, one language). It must render with the message's sample data; syntax and rendering errors come back per field with their line.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.messagestringrequiredMessage key
channelstringrequiredemail,smsorwhatsapplocalestringrequiredenorar
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
subjectstring · or nullbodystring · or nulltextstring · or nulltemplatestring · or nullThe approved WhatsApp template's name.
languagestring · or nullThe WhatsApp template's language code.
parametersarray of strings · or nullThe WhatsApp body variables
{{1}},{{2}}… in order.button_parameterstring · or nullThe variable of a WhatsApp URL or copy-code button.
Returns
200 The saved template.
Errors
- 403
forbiddenMissingnotifications:manage. - 404
not_foundNo such message, or not on this channel. - 422
validation_failedMissing fields or a template that does not render.