---
title: "Re-apply auto-linking to a banner"
type: reference
method: POST
path: /rest-api/banners/{bannerId}/auto-linking/apply.do
tag: "Placements"
---

# Re-apply auto-linking to a banner

`POST https://YOUR-NETWORK-DOMAIN/rest-api/banners/{bannerId}/auto-linking/apply.do`

Links the banner to the placements its auto-linking rule now matches and unlinks it from the ones it no longer matches. Does nothing when the banner has no auto-linking rule. 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 campaign and AUTO_LINKING_SETTINGS.

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `bannerId` | integer | yes | `4001` | ID of the banner |

## Responses

- `200` — Applied; the counts say what changed
- `400` — Bad request — invalid or missing parameters
- `401` — Authentication error
- `403` — Missing share or permission; the message names the permission
- `404` — Banner not found

## Example request

```bash
curl --request POST \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/banners/4001/auto-linking/apply.do' \
  --header 'X-Api-Key: YOUR_API_KEY'
```

Source: https://epom.com/ad-server/docs/api/placements/post-banners-auto-linking-apply