Notifications

Turn a channel on or off for one user and notification type

Channels are add-ons to the in-app subscription, so enabling a channel for a user who isn't subscribed in-app is rejected, and unsubscribing in-app also stops the channel. The main user can change any user, other users only themselves.

put/notifications/settings/{channel}

Request

  • Base URL
    https://api.c1st.com/api
  • URL
    https://api.c1st.com/api/notifications/settings/{channel}
  • Auth
    HTTP bearer

Request body

notificationstring required
useridinteger required
enabledboolean required

Example request

{
  "notification": "App\\Notifications\\ProductStockBelowMinimum"
}

Response

OK

object required

Notification type mapped to the ids of the users receiving it on the channel

Changes

No recorded changes to this operation across all 1 revision of this API.