---
title: "Update an ads"
method: PUT
path: "/1/videos/{channel}/players/{player}/ads/{ads}"
tags: ["Players > Ads"]
---

# Update an ads

`PUT /1/videos/{channel}/players/{player}/ads/{ads}`

This endpoint allows you to update an Ads.

## Path parameters

- `channel` integer, required
- `player` integer, required
- `ads` integer, required

## Query parameters

- `with` string
- `account_id` integer, required — Account identifier

## Request body

- object
  - `is_periodic` boolean — boolean to determine if ad should cycle
  - `offset` integer — the offset to play the ad
  - `type` 'mid-roll' | 'pre-roll' — the ad type to play the ad
  - `url` string — the url of the vast XML

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` string

## Other responses

- `500` — Internal Server Error

---

[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/3143e9cbbf77/schema)
