---
title: "Update media asset properties."
method: PUT
path: "/media/{id}"
tags: ["Media"]
---

# Update media asset properties.

`PUT /media/{id}`

## Request

- Base URL: `https://api.reveldigital.com`
- URL: `https://api.reveldigital.com/media/{id}`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://id.reveldigital.com/connect/authorize`
    - Token URL: `https://id.reveldigital.com/connect/token` scopes: `webapi`
  - API key in header `X-RevelDigital-ApiKey`
  - API key in query parameter `api_key`
- TypeScript: <https://skmtc.dev/reveldigital/apis/revel-digital-rest-api/docs/media/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required

## Request body

- MediaRequest: Media request model. Used for creating and updating media
  - `name` string, nullable: The media name
  - `group_id` string, nullable: The group id
  - `tags` string, nullable: The tags associated with this media
  - `advertiser_id` string, nullable: The advertiser id. Optional
  - `is_shared` boolean, nullable: Is this media shared with other accounts
  - `start_date` string, date-time, nullable: The start date for this media
  - `end_date` string, date-time, nullable: The end date for this media

## Response `204`

No Content

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/reveldigital/apis/revel-digital-rest-api.md) - [All operations](https://skmtc.dev/reveldigital/apis/revel-digital-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/reveldigital/apis/revel-digital-rest-api/revisions/39d5c8302822?raw)
