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"
}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"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Notification setting information to be updated
level:
user - need to specific modules via notifiableEvents.channel - need to specific channelId.community - need to specific communityId and community event via notifiableEvents.user, channel, community 1 - 9001 - 9001 - 7 elementsShow child attributes
save information