---
title: "Preview re-applying auto-linking to a placement"
type: reference
method: GET
path: /rest-api/placements/{placementId}/auto-linking.do
tag: "Placements"
---

# Preview re-applying auto-linking to a placement

`GET https://YOUR-NETWORK-DOMAIN/rest-api/placements/{placementId}/auto-linking.do`

What re-applying auto-linking to the placement would change, after its labels or its site's categories changed. Nothing is written. linkCount: creative-placement links to add, unlinkCount: links to remove, placementCount: placements affected. All zero means the links already follow the auto-linking rules. Requires UPDATE share on the site and APPLY_AUTO_LINKING.

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `placementId` | integer | yes | `2001` | ID of the placement |

## Responses

- `200` — The change
- `400` — Bad request — invalid or missing parameters
- `401` — Authentication error
- `403` — Missing share or permission; the message names the permission
- `404` — Placement not found

## Example request

```bash
curl --request GET \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/placements/2001/auto-linking.do' \
  --header 'X-Api-Key: YOUR_API_KEY'
```

Source: https://epom.com/ad-server/docs/api/placements/get-placements-auto-linking