---
title: "Apply a publisher video spec preset to a site"
type: reference
method: POST
path: /rest-api/sites/{siteId}/video-requirements/apply-preset.do
tag: "Sites"
---

# Apply a publisher video spec preset to a site

`POST https://YOUR-NETWORK-DOMAIN/rest-api/sites/{siteId}/video-requirements/apply-preset.do`

Replaces the site's video creative requirements with a publisher's published spec — e.g. presetId=hulu to make the site's requirements Hulu's. Ids come from video-requirements/presets. The switch is not changed: turn it on with video-requirements/enable for the requirements to be checked. Requires UPDATE access to the site and ENABLED level on the SITE_VIDEO_CREATIVE_REQUIREMENTS permission.

## Path params

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

## Form params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `presetId` | string | yes | `hulu` | Preset id from video-requirements/presets |

## Responses

- `200` — Preset applied; the site's requirements and switch are returned
- `400` — Unknown presetId
- `401` — Authentication error
- `403` — Insufficient permissions, naming the missing one
- `404` — Site not found or deleted

## Example request

```bash
curl --request POST \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/sites/5001/video-requirements/apply-preset.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'presetId=hulu'
```

Source: https://epom.com/ad-server/docs/api/sites/post-sites-video-requirements-apply-preset