---
title: "List a placement's content replacement rules"
type: reference
method: GET
path: /rest-api/placements/{placementId}/content-replacement.do
tag: "Placements"
---

# List a placement's content replacement rules

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

The find-and-replace rules of the placement's Content replacement card, oldest first: each rule's 'target' is the exact text the ad server looks for in every ad markup the placement serves, and every occurrence becomes its 'replacement'. The rules apply only while 'contentReplacementEnabled' is true — switch it with the contentReplacementEnabled parameter of the placement's update operation; rules are kept either way. Every rule is returned; 'total' is their number. Requires the PLACEMENT_CONTENT_REPLACEMENT permission and view rights on the placement's site.

## Path params

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

## Responses

- `200` — {success, placementId, contentReplacementEnabled, total, rules:[{id, target, replacement}]}
- `400` — Bad request — invalid or missing parameters
- `401` — Authentication error
- `403` — The role lacks PLACEMENT_CONTENT_REPLACEMENT, or no view rights on the placement's site
- `404` — The placement does not exist or is deleted

## Example request

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

Source: https://epom.com/ad-server/docs/api/placements/get-placements-content-replacement