---
title: "Updates a ad."
method: PATCH
path: "/1/vod/channel/{channel}/player/{player}/ad/{ad}"
tags: ["V2 > Ad"]
---

# Updates a ad.

`PATCH /1/vod/channel/{channel}/player/{player}/ad/{ad}`

## Path parameters

- `channel` integer, required
- `player` integer, required
- `ad` integer, required

## Request body

- object
  - `player_id` integer, required — <br/>This field must exist on the `players` database in the `id` column.
  - `url` string — <br/>This domain name must have a valid A or AAAA record.
  - `mimetype` string
  - `href` string — <br/>This domain name must have a valid A or AAAA record.
  - `type` string, required
  - `offset` number — <br/>This field must be present and not empty if the `type` field is equal to any of the following:`mid_roll`
  - `skip_after` number
  - `tracking_id` string

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` Acfc41a0Ad
    - `position` string
    - `url` string
    - `mimetype` string
    - `href` string
    - `type` string, required
    - `offset` number
    - `skip_after` number
    - `tracking_id` string

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
