---
title: "Update VAST tracking events — banner"
type: reference
method: POST
path: /rest-api/banner/{id}/vast/events.do
tag: "VAST"
---

# Update VAST tracking events — banner

`POST https://YOUR-NETWORK-DOMAIN/rest-api/banner/{id}/vast/events.do`

Replaces the complete set of enabled VAST tracking events for the specified entity. The request body must contain a JSON array of VAST event name strings (e.g., AD_START, AD_COMPLETE, AD_MUTE). Any event not included in the array will be disabled; events included will be enabled. The entity must be a video-type entity. The caller must have update permissions on the entity.

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `id` | integer | yes | `5001` | The unique numeric identifier of the entity to update VAST events for |

## Body

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

```json
[
  "string"
]
```

## Responses

- `200` — VAST tracking events updated successfully
- `400` — Invalid event name or entity is not a video placement
- `401` — Authentication error
- `403` — Not enough permissions
- `404` — The entity does not exist or is deleted

## Example request

```bash
curl --request POST \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/banner/5001/vast/events.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '[
  "AD_START"
]'
```

Source: https://epom.com/ad-server/docs/api/vast/post-banner-vast-events