POST
/
api
/
v3
/
notification
/
setting
Save push notification setting.
curl --request POST \
  --url https://apix.us.amity.co/api/v3/notification/setting \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "level": "user",
  "isPushNotifiable": true,
  "channelId": "<string>",
  "communityId": "<string>",
  "notifiableEvents": [
    {
      "name": "channel.created",
      "moduleName": "chat",
      "isPushNotifiable": true,
      "titleTemplate": "<string>",
      "bodyTemplate": "<string>",
      "listenFromRoleIds": [
        "<string>"
      ],
      "ignoreFromRoleIds": [
        "<string>"
      ]
    }
  ]
}'
{
  "status": "success"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Notification setting information to be updated

The body is of type object.

Response

200
application/json

save information

The response is of type object.