---
title: "Enable banner rules"
type: reference
method: POST
path: /rest-api/rules/banner/{bannerId}/enable.do
tag: "Targeting Rules"
---

# Enable banner rules

`POST https://YOUR-NETWORK-DOMAIN/rest-api/rules/banner/{bannerId}/enable.do`

Activates the targeting rules engine for the specified banner, allowing its configured rule groups to take effect during ad serving. The banner is identified by its numeric ID in the URL path. The response is a JSON object with 'success: true' on success. Requires the caller to have UPDATE permission on the banner's parent advertiser campaign share and CAMPAIGN_RULES_MANAGEMENT permission. The action is logged for audit purposes. POST only: a GET answers 405, since a state change over GET can be triggered by a prefetch or an embedded link.

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `bannerId` | integer | yes | `7890` | The unique numeric identifier of the banner whose targeting rules should be enabled |

## Responses

- `200` — Rules enabled successfully
- `400` — Bad request — invalid or missing parameters
- `401` — Unauthorized - authentication error
- `403` — Forbidden - insufficient permissions
- `404` — Banner not found

## Example request

```bash
curl --request POST \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/rules/banner/7890/enable.do' \
  --header 'X-Api-Key: YOUR_API_KEY'
```

Source: https://epom.com/ad-server/docs/api/targeting-rules/post-rules-banner-enable