# Disconnect Location from Listing

```http
POST https://api.synup.com/api/v4/connected-accounts/disconnect-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.

Source: https://developer.synup.com/api/connected-accounts/disconnect-location-from-listing

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Content-Type` | string | required |  |

## Request 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 listing One of: `GOOGLE`, `FACEBOOK` |

## Example request

```bash
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"
  }
}'
```

## 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 |
