Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • messagestringrequired

    Message key

Headers

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • channelsarray of enumsrequired

    The channels the message goes out on; empty turns it off.

    • email
    • sms
    • whatsapp

Returns

200 The message.

Errors

  • 403forbiddenMissing notifications:manage.
  • 404not_foundNo such message.
  • 422validation_failedA channel the message cannot use.