POSTapi.synup.com/api/v4/connected-accounts/disconnect-listing
Disconnect Location from Listing
This API removes the connection between a location in your account and its associated Google My Business or Facebook Page listing.
Required Fields:
- locationId – Base64-encoded unique identifier of the location.
- siteType – Specifies the platform (Google My Business or Facebook Page).
Behavior:
- Once disconnected, the system stops syncing and managing the listing.
- The listing remains active on the external platform, but updates from your system will no longer be applied.
Requires an API key. Send it as
Authorization: API <your-key> — see Getting started.Parameters
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type | string | required |
Body
| Name | Type | Required | Description |
|---|---|---|---|
input | object | required | |
input.locationId | string | required | Base64 encoded location ID |
input.site | string | required | The platform from which to disconnect the listingGOOGLEFACEBOOK |
Request
Request
curl -X POST 'https://api.synup.com/api/v4/connected-accounts/disconnect-listing' \
-H 'Authorization: API YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"input": {
"locationId": "TG9jYXRpb246Mjc1ODM2",
"site": "GOOGLE"
}
}'const res = await fetch('https://api.synup.com/api/v4/connected-accounts/disconnect-listing', {
method: 'POST',
headers: {
Authorization: 'API YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"input": {
"locationId": "TG9jYXRpb246Mjc1ODM2",
"site": "GOOGLE"
}
}),
});
const data = await res.json();import requests
res = requests.post(
"https://api.synup.com/api/v4/connected-accounts/disconnect-listing",
headers={
"Authorization": "API YOUR_API_KEY",
"Content-Type": "application/json",
},
json={
"input": {
"locationId": "TG9jYXRpb246Mjc1ODM2",
"site": "GOOGLE"
}
},
)
data = res.json()req, _ := http.NewRequest("POST", "https://api.synup.com/api/v4/connected-accounts/disconnect-listing", 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 | Disconnection process completed |
400 | Invalid request - Malformed base64 string or invalid site value |
401 | Unauthorized - Invalid or missing API key |
403 | Forbidden - Insufficient permissions |
404 | Not Found - Location or listing not found |
Example response (generated from the schema)
{
"data": {
"disconnectConnectedAccountsLocations": {
"clientMutationId": "string",
"errors": {},
"success": true
}
}
}Response body
| Name | Type | Required | Description |
|---|---|---|---|
data | object | optional | |
data.disconnectConnectedAccountsLocations | object | optional | |
data.disconnectConnectedAccountsLocations.clientMutationId | string | optional | Client mutation identifier if provided |
data.disconnectConnectedAccountsLocations.errors | object | optional | Hash containing any errors that occurred during disconnection |
data.disconnectConnectedAccountsLocations.success | boolean | required | Indicates if the disconnection was successful. Returns true if the account was successfully disconnected from the location. |