---
title: "POST /media/{mediaId}"
method: POST
path: "/media/{mediaId}"
tags: ["media"]
---

# POST /media/{mediaId}

`POST /media/{mediaId}`

## Request

- Base URL: `https://displayvideo.googleapis.com`
- URL: `https://displayvideo.googleapis.com/media/{mediaId}`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/display-video`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/display-video`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/doubleclickbidmanager`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/doubleclickbidmanager`

Uploads media. Upload is supported on the URI `/upload/media/{resource_name=**}?upload_type=media.` **Note**: Upload requests will not be successful without including `upload_type=media` query string.

## Path parameters

- `mediaId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string

## Request body

- GoogleBytestreamMedia: Media resource.
  - `resourceName` string: Name of the media resource.

## Response `200`

Successful response

- GoogleBytestreamMedia: Media resource.
  - `resourceName` string: Name of the media resource.

## Changes

- **2026-12-01** `c4f5eaed2791`: 4 info
  - the security scope `https://www.googleapis.com/auth/display-video` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/display-video` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/doubleclickbidmanager` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/doubleclickbidmanager` was removed from the endpoint's security scheme `Oauth2c`
- **2026-11-18** `098155933967`: 4 info
  - the security scope `https://www.googleapis.com/auth/display-video` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/display-video` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/doubleclickbidmanager` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/doubleclickbidmanager` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/displayvideo/changes/media/:mediaId/post.md)

---

[API](https://skmtc.dev/google/apis/displayvideo.md) - [All operations](https://skmtc.dev/google/apis/displayvideo/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/displayvideo/revisions/c4f5eaed2791?raw)
