Set notification message channels
PUT
/ admin/ v1/ stores/ {store_id}/ notifications/ messages/ {message}/ channels- notifications:manage
Choose the channels a message goes out on; an empty list turns it off. SMS and WhatsApp also need a connected account.
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
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
channelsarray of enumsrequiredThe channels the message goes out on; empty turns it off.
- sms
Returns
200 The message.
Errors
- 403
forbiddenMissingnotifications:manage. - 404
not_foundNo such message. - 422
validation_failedA channel the message cannot use.