Method: assets.patch
Stay organized with collections
Save and categorize content based on your preferences.
Page Summary
-
This endpoint patches metadata for a specified YouTube asset using its
assetId. -
The request utilizes a
PATCHHTTP method and requires theassetIdas a path parameter. -
It also allows the
onBehalfOfContentOwnerquery parameter to identify the content owner. -
The request body should contain an instance of the
Assetresource, and the successful response also returns anAssetresource. -
This request needs the
https://www.googleapis.com/auth/youtubepartnerOAuth scope for authorization.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Patches the metadata for the specified asset.
If the asset is already owned by another content owner, you must add your ownership to the asset (using the ownership.update or ownership.patch method) before you can update its metadata. Otherwise, the request returns a PERMISSION_DENIED error.
HTTP request
PATCH https://youtubepartner.googleapis.com/youtube/partner/v1/assets/{assetId}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
assetId |
The |
Query parameters
| Parameters | |
|---|---|
onBehalfOfContentOwner |
The |
Request body
The request body contains an instance of Asset .
Response body
If successful, the response body contains an instance of Asset .
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/youtubepartner
For more information, see the OAuth 2.0 Overview.