Update user notifications setting api
Update email and push notification settings for user.
NOTE: QuranReflect is sending email and push notification. User can update settings for both types of notifications. Any notification setting key that has
push
in it is for Push notification. Otherwise it's email notification setting.
Path Parameters
user_id string required
Query Parameters
client_auth_token string required
Client API token
Header Parameters
access-token string required
user access token
client string required
client access token
expiry string required
timestamp of token expiry
Example: 1537116932
token-type string required
access token type
Example: Bearer
uid string required
user uid
Example: user@quranreflect.com
application/json
Request Body
user_notifications_setting object
Responses
- 200
OK
Response Headers
application/json
Schema
Example (from schema)
Example
Schema
object
{}
{
"success": true
}
PUT /v1/user_notifications_settings/:user_id
Request
Request
curl / cURL
curl -L -X PUT 'https://quranreflect.com/v1/user_notifications_settings/:user_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"user_notifications_setting": {
"emails_disabled": true,
"follow_notification": true,
"followed_user_added_post_notification": true,
"post_commented_notification": true,
"post_liked_notification": true,
"mention_notification": true,
"added_post_in_group_notification": true,
"follow_push_notification": true,
"followed_user_added_post_push_notification": true,
"post_commented_push_notification": true,
"post_liked_push_notification": true,
"mention_push_notification": true,
"added_post_in_group_push_notification": true
}
}'
python / requests
curl -L -X PUT 'https://quranreflect.com/v1/user_notifications_settings/:user_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"user_notifications_setting": {
"emails_disabled": true,
"follow_notification": true,
"followed_user_added_post_notification": true,
"post_commented_notification": true,
"post_liked_notification": true,
"mention_notification": true,
"added_post_in_group_notification": true,
"follow_push_notification": true,
"followed_user_added_post_push_notification": true,
"post_commented_push_notification": true,
"post_liked_push_notification": true,
"mention_push_notification": true,
"added_post_in_group_push_notification": true
}
}'
go / native
curl -L -X PUT 'https://quranreflect.com/v1/user_notifications_settings/:user_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"user_notifications_setting": {
"emails_disabled": true,
"follow_notification": true,
"followed_user_added_post_notification": true,
"post_commented_notification": true,
"post_liked_notification": true,
"mention_notification": true,
"added_post_in_group_notification": true,
"follow_push_notification": true,
"followed_user_added_post_push_notification": true,
"post_commented_push_notification": true,
"post_liked_push_notification": true,
"mention_push_notification": true,
"added_post_in_group_push_notification": true
}
}'
nodejs / axios
curl -L -X PUT 'https://quranreflect.com/v1/user_notifications_settings/:user_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"user_notifications_setting": {
"emails_disabled": true,
"follow_notification": true,
"followed_user_added_post_notification": true,
"post_commented_notification": true,
"post_liked_notification": true,
"mention_notification": true,
"added_post_in_group_notification": true,
"follow_push_notification": true,
"followed_user_added_post_push_notification": true,
"post_commented_push_notification": true,
"post_liked_push_notification": true,
"mention_push_notification": true,
"added_post_in_group_push_notification": true
}
}'
ruby / Net::HTTP
curl -L -X PUT 'https://quranreflect.com/v1/user_notifications_settings/:user_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"user_notifications_setting": {
"emails_disabled": true,
"follow_notification": true,
"followed_user_added_post_notification": true,
"post_commented_notification": true,
"post_liked_notification": true,
"mention_notification": true,
"added_post_in_group_notification": true,
"follow_push_notification": true,
"followed_user_added_post_push_notification": true,
"post_commented_push_notification": true,
"post_liked_push_notification": true,
"mention_push_notification": true,
"added_post_in_group_push_notification": true
}
}'
csharp / RestSharp
curl -L -X PUT 'https://quranreflect.com/v1/user_notifications_settings/:user_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"user_notifications_setting": {
"emails_disabled": true,
"follow_notification": true,
"followed_user_added_post_notification": true,
"post_commented_notification": true,
"post_liked_notification": true,
"mention_notification": true,
"added_post_in_group_notification": true,
"follow_push_notification": true,
"followed_user_added_post_push_notification": true,
"post_commented_push_notification": true,
"post_liked_push_notification": true,
"mention_push_notification": true,
"added_post_in_group_push_notification": true
}
}'
php / cURL
curl -L -X PUT 'https://quranreflect.com/v1/user_notifications_settings/:user_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"user_notifications_setting": {
"emails_disabled": true,
"follow_notification": true,
"followed_user_added_post_notification": true,
"post_commented_notification": true,
"post_liked_notification": true,
"mention_notification": true,
"added_post_in_group_notification": true,
"follow_push_notification": true,
"followed_user_added_post_push_notification": true,
"post_commented_push_notification": true,
"post_liked_push_notification": true,
"mention_push_notification": true,
"added_post_in_group_push_notification": true
}
}'
java / OkHttp
curl -L -X PUT 'https://quranreflect.com/v1/user_notifications_settings/:user_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"user_notifications_setting": {
"emails_disabled": true,
"follow_notification": true,
"followed_user_added_post_notification": true,
"post_commented_notification": true,
"post_liked_notification": true,
"mention_notification": true,
"added_post_in_group_notification": true,
"follow_push_notification": true,
"followed_user_added_post_push_notification": true,
"post_commented_push_notification": true,
"post_liked_push_notification": true,
"mention_push_notification": true,
"added_post_in_group_push_notification": true
}
}'
powershell / RestMethod
curl -L -X PUT 'https://quranreflect.com/v1/user_notifications_settings/:user_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"user_notifications_setting": {
"emails_disabled": true,
"follow_notification": true,
"followed_user_added_post_notification": true,
"post_commented_notification": true,
"post_liked_notification": true,
"mention_notification": true,
"added_post_in_group_notification": true,
"follow_push_notification": true,
"followed_user_added_post_push_notification": true,
"post_commented_push_notification": true,
"post_liked_push_notification": true,
"mention_push_notification": true,
"added_post_in_group_push_notification": true
}
}'