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
The body is of type object
.
save information
The response is of type object
.