curl --request POST \
--url https://api.partoo.co/v2/user/{user_id}/preferences \
--header 'Content-Type: application/json' \
--header 'x-APIKey: <api-key>' \
--data '
{
"reports": {
"review_management_daily": true,
"review_management_weekly": true,
"review_management_monthly": true,
"daily_review_preferences": {
"partners": [
"facebook",
"google_my_business",
"tripadvisor"
],
"review_type": 2
}
},
"receive_negative_reviews_email_notifications": true
}
'{
"id": "5309c3a237bbc544d8e26737",
"status": "success"
}This endpoint lets you update all the information about a user’s preferences on notifications. You need to have WRITE access to this user.
curl --request POST \
--url https://api.partoo.co/v2/user/{user_id}/preferences \
--header 'Content-Type: application/json' \
--header 'x-APIKey: <api-key>' \
--data '
{
"reports": {
"review_management_daily": true,
"review_management_weekly": true,
"review_management_monthly": true,
"daily_review_preferences": {
"partners": [
"facebook",
"google_my_business",
"tripadvisor"
],
"review_type": 2
}
},
"receive_negative_reviews_email_notifications": true
}
'{
"id": "5309c3a237bbc544d8e26737",
"status": "success"
}The authentication system on Partoo API is using API Key that should be put in the header of the request (the name of the header is x-APIKey). An api_key is linked to a user. This user's role will give you different access level to the API features.
User id
Daily, weekly and monthly reports preferences
Show child attributes
The user's preference on receiving a daily review management email.
The user's preference on receiving a weekly review management email.
The user's preference on receiving a monthly review management email.
Daily report preferences
Show child attributes
list of partners to receive daily reviews notifications from.
The partner to receive daily reviews notification from. "facebook", "google_my_business" or "tripadvisor"
facebook, google_my_business, tripadvisor [
"facebook",
"google_my_business",
"tripadvisor"
]Review type. 1 to receive negative reviews, 2 for negative and neutral reviews, 3 for all reviews.
1, 2, 3 2
Receive a notification when there is a negative review.
Was this page helpful?