Modifies a channel's metadata, including brandingSettings, localizations, and status. Requires OAuth 2.0 authorization.
Request body properties: Include id in the request body to identify the channel being updated, along with any writable properties for the parts listed in the part parameter:
id(required)brandingSettings.channel.countrybrandingSettings.channel.defaultLanguagebrandingSettings.channel.descriptionbrandingSettings.channel.keywordsbrandingSettings.channel.trackingAnalyticsAccountIdbrandingSettings.channel.unsubscribedTrailerlocalizations.(key).titlelocalizations.(key).descriptionstatus.selfDeclaredMadeForKids
When part includes brandingSettings, the API overwrites all existing values for writable brandingSettings.channel properties. Omitting a writable property clears its existing value, except omitting brandingSettings.channel.defaultLanguage sets the default language to "en". The API ignores values supplied for brandingSettings.channel.title. It ignores brandingSettings.image only when accompanied by brandingSettings.channel properties; a part=brandingSettings request with only brandingSettings.image returns an HTTP 400 error. Use channelBanners.insert to update the channel banner directly.
See the channels.update errors reference for error messages this method returns. For code examples, see channels.update code snippets.
HTTP request
PUT https://youtube.googleapis.com/youtube/v3/channels
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
part[] |
Required. Serves two purposes in this operation: it identifies the properties that the write operation sets as well as the properties that the API response includes. The API allows the parameter value to include Each updatable part listed in this parameter must also be included in the request body, and every updatable part present in the request body must be listed in this parameter. This method overrides existing values for all mutable properties contained in the specified parts. |
onBehalfOfContentOwner |
Indicates that the authenticated user is acting on behalf of the content owner specified in the parameter value. This parameter is intended exclusively for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and access all their video and channel data, without having to provide authentication credentials for each individual channel. You must use OAuth 2.0 authorization when setting this parameter, and the actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. If this parameter is omitted, a request authenticated with credentials for a CMS content owner user acting on a managed channel executes under the authenticated user's direct context and returns an HTTP 403 Forbidden error. |
Request body
The request body contains an instance of Channel.
Response body
If successful, the response body contains an instance of Channel.
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-ssl
For more information, see the OAuth 2.0 Overview.