# Mark listings as duplicates

```http
POST https://api.synup.com/api/v4/locations/listings/mark-as-duplicate
```

This API flags one or more listings as duplicates for a specific location.

**Behavior:**
- Identifies listings that represent the same business but appear separately across different directories.
- Helps maintain data consistency by marking duplicate entries for review or removal.

Source: https://developer.synup.com/api/listings/mark-listings-as-duplicates

## Header parameters

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

## Request body

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `input` | object | required |  |
| `input.locationId` | string | required | The unique identifier of the location |
| `input.listingItemIds` | array of string | required | Array of listing IDs to mark as duplicates |

## Example request

```bash
curl -X POST 'https://api.synup.com/api/v4/locations/listings/mark-as-duplicate' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "input": {
    "locationId": "TG9jYXRpb246MjcyODc2",
    "listingItemIds": [
      "TGlzdGluZ0l0ZW06NDMzODcxMjY=",
      "TGlzdGluZ0l0ZW06NDMzODcxMzE="
    ]
  }
}'
```

## Responses

| Status | Description |
| --- | --- |
| `200` | Listings marked as duplicates successfully |
| `400` | Bad request - invalid input parameters |
| `401` | Unauthorized - invalid or missing API key |
| `403` | Forbidden - insufficient permissions |
| `404` | Location or listings not found |
