Uploads a watermark image to YouTube and sets it for a channel.
Every request must include both an uploaded image and an InvideoBranding JSON request body (timing is required), sent to the upload URI (/upload/youtube/v3/watermarks/set). Requests sent to the metadata-only URI without image media fail. Uploaded images must meet the following requirements:
- Aspect ratio: Square (1:1)
- Dimensions: 150x150 pixels to 1920x1920 pixels
- Maximum file size: 1 MiB (uploads between 1 MiB and 10 MiB are rejected with HTTP 400
badRequest; uploads over 10 MiB fail with HTTP 413uploadTooLarge) - Accepted media MIME types:
image/jpeg,image/png,application/octet-stream
If successful, this method returns an HTTP 204 No Content response with an empty body.
For method-specific error responses, see watermarks.set errors.
HTTP request
- Upload URI, for media upload requests:
POST https://youtube.googleapis.com/upload/youtube/v3/watermarks/set - Metadata URI, for metadata-only requests:
POST https://youtube.googleapis.com/youtube/v3/watermarks/set
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
channelId |
Required. Specifies the YouTube channel ID for which the watermark is being provided. The authenticated user must have write permission on the specified channel. |
onBehalfOfContentOwner |
Intended exclusively for YouTube content partners and valid only in an authorized request. Indicates that the request's authorization credentials identify a YouTube CMS user acting on behalf of the specified content owner, allowing partners that manage multiple channels to authenticate once and manage linked channels without authenticating separately for each channel. The authenticating CMS account must be linked to the specified YouTube content owner. |
Request body
The request body contains an instance of InvideoBranding.
Response body
If successful, the response body is empty.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/youtubehttps://www.googleapis.com/auth/youtubepartnerhttps://www.googleapis.com/auth/youtube.force-sslhttps://www.googleapis.com/auth/youtube.upload
For more information, see the OAuth 2.0 Overview.