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
Was this page helpful?