---
title: "Set site CPM thresholds"
type: reference
method: POST
path: /rest-api/sites/{siteId}/cpm-thresholds.do
tag: "Sites"
---

# Set site CPM thresholds

`POST https://YOUR-NETWORK-DOMAIN/rest-api/sites/{siteId}/cpm-thresholds.do`

Sets or updates the CPM threshold configuration for the specified site. The request body is a JSON object containing a default cpmThreshold value and an optional array of per-country CPM thresholds (ISO 3166 country code to threshold value mappings). Existing per-country thresholds are replaced entirely. Requires ENABLED level on both MANAGE_PRICING and CPM_PRICING_TYPE permissions.

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `siteId` | integer | yes | `5001` | Unique numeric ID of the site |

## Body

A JSON body. An example, built from the field definitions:

```json
{
  "cpmThreshold": "0.50"
}
```

## Responses

- `200` — CPM thresholds updated successfully
- `400` — Bad request — invalid or missing parameters
- `401` — Authentication error
- `403` — Insufficient permissions
- `404` — Not found — resource does not exist

## Example request

```bash
curl --request POST \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/sites/5001/cpm-thresholds.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "cpmThreshold": "0.50"
}'
```

Source: https://epom.com/ad-server/docs/api/sites/post-sites-cpm-thresholds