---
title: "Filter a delivery priority of placement daisy chaining by country"
type: reference
method: POST
path: /rest-api/placements/{placementId}/chaining/delivery-priority-filter.do
tag: "Placements"
---

# Filter a delivery priority of placement daisy chaining by country

`POST https://YOUR-NETWORK-DOMAIN/rest-api/placements/{placementId}/chaining/delivery-priority-filter.do`

Sets one delivery priority's filter on a chain grouped by delivery priority, as the priority rows under the console's 'Apply delivery priorities' option do. enabled=true keeps the priority's campaigns or banners in the chain for the countries sent (ISO alpha-2 codes, repeat the parameter; '*' or none sent means every country), replacing the priority's previous countries; enabled=false leaves the priority out of the chain. Grouping switches every priority on for every country. Needs the Daisy Chaining permission and update rights on the placement's site.

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `placementId` | integer | yes | `4001` | Placement id |

## Form params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `deliveryPriority` | string | yes | `STANDARD_HIGH` | The delivery priority the filter is for |
| `enabled` | boolean | yes | `true` | true keeps the priority in the chain for the countries sent, false leaves it out |
| `countries` | array<string> | no | `US` | ISO alpha-2 country codes, or '*' for every country; none sent means every country |

## Responses

- `200` — The chain's settings, as the setup endpoint answers, with deliveryPriorityFilters
- `400` — Daisy chaining is off or not grouped by delivery priority, or an unknown country code
- `401` — Authentication error
- `403` — The Daisy Chaining permission is off, or no update rights on the placement's site
- `404` — The placement does not exist or is deleted

## Example request

```bash
curl --request POST \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/placements/4001/chaining/delivery-priority-filter.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'deliveryPriority=STANDARD_HIGH' \
  --data-urlencode 'enabled=true' \
  --data-urlencode 'countries=US'
```

Source: https://epom.com/ad-server/docs/api/placements/post-placements-chaining-delivery-priority-filter