POSTapi.synup.com/api/v4/locations/reviews/settings/edit
Add / Edit interaction source
Use this endpoint to add a new interaction source URL. The body of the request must contain the locationId and a siteUrls array.
Interaction sources for connected Google and Facebook accounts cannot be modified/added to. These interaction sources are automatically added when you connect your Google and Facebook accounts.
Requires an API key. Send it as
Authorization: API <your-key> — see Getting started.Parameters
Body
| Name | Type | Required | Description |
|---|---|---|---|
locationId | string | required | |
siteUrls | array of object | required | |
siteUrls[].name | string | optional | |
siteUrls[].url | string | optional |
Request
Request
curl -X POST 'https://api.synup.com/api/v4/locations/reviews/settings/edit' \
-H 'Authorization: API YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"locationId": "TG9jYXRpb246MTY4MDU=",
"siteUrls": [
{
"name": "trulia.com",
"url": "test.com"
}
]
}'const res = await fetch('https://api.synup.com/api/v4/locations/reviews/settings/edit', {
method: 'POST',
headers: {
Authorization: 'API YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"locationId": "TG9jYXRpb246MTY4MDU=",
"siteUrls": [
{
"name": "trulia.com",
"url": "test.com"
}
]
}),
});
const data = await res.json();import requests
res = requests.post(
"https://api.synup.com/api/v4/locations/reviews/settings/edit",
headers={
"Authorization": "API YOUR_API_KEY",
"Content-Type": "application/json",
},
json={
"locationId": "TG9jYXRpb246MTY4MDU=",
"siteUrls": [
{
"name": "trulia.com",
"url": "test.com"
}
]
},
)
data = res.json()req, _ := http.NewRequest("POST", "https://api.synup.com/api/v4/locations/reviews/settings/edit", bytes.NewBufferString(payload))
req.Header.Set("Authorization", "API YOUR_API_KEY")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)Responses
| Status | Description |
|---|---|
200 |
Example response
{
"data": {
"editInteractionsSetting": {
"errors": null,
"interactionSetting": {
"positiveInteractionThreshold": 2,
"siteSettings": [
{
"name": "trulia.com",
"url": "test.com",
"connected": false
},
{
"name": "google.com",
"url": "test.com",
"connected": false
},
{
"name": "foursquare.com",
"url": "test.com",
"connected": false
},
{
"name": "yelp.com",
"url": "https://www.yelp.com/biz/yelp-san-francisco?sort_by=date_desc",
"connected": false
},
{
"name": "facebook.com",
"url": "https://www.facebook.com/Om-book-shop-613976075648984/",
"connected": true
},
{
"name": "maps.google.com",
"url": "https://maps.google.com/maps?cid=11886702604501862703",
"connected": true
},
{
"name": "zillow.com",
"url": null,
"connected": false
},
{
"name": "realtor.com",
"url": null,
"connected": false
},
{
"name": "reach150.com",
"url": null,
"connected": false
},
{
"name": "yelloyello.com",
"url": "https://www.yelloyello.com/places/tryvexan-review-new-york",
"connected": false
}
],
"id": "743c8f7e-cc47-42ff-a640-3c4d072dcb86"
}
}
}
}Response body
| Name | Type | Required | Description |
|---|---|---|---|
data | object | required | |
data.editInteractionsSetting | object | required | |
data.editInteractionsSetting.errors | null | required | |
data.editInteractionsSetting.interactionSetting | object | required | |
data.editInteractionsSetting.interactionSetting.positiveInteractionThreshold | integer | required | |
data.editInteractionsSetting.interactionSetting.siteSettings | array of object | required | |
data.editInteractionsSetting.interactionSetting.siteSettings[].name | string | required | |
data.editInteractionsSetting.interactionSetting.siteSettings[].url | string | required | |
data.editInteractionsSetting.interactionSetting.siteSettings[].connected | boolean | required | |
data.editInteractionsSetting.interactionSetting.id | string | required | |
data.interactionSiteConfig | array of object | required | |
data.interactionSiteConfig[].site | string | required | |
data.interactionSiteConfig[].siteUrl | string | required | |
data.interactionsSetting | object | required | |
data.interactionsSetting.siteSettings | array of object | required | |
data.interactionsSetting.siteSettings[].name | string | required | |
data.interactionsSetting.siteSettings[].url | string | required |