Adds a channel section to the authenticated user's channel. A channel can create a maximum of 10 channel sections.
In the request body, provide a channelSection resource. You must specify snippet.type. Depending on snippet.type, you must also specify contentDetails.playlists (for singlePlaylist or multiplePlaylists) or contentDetails.channels (for multipleChannels), and you should specify snippet.title (for multiplePlaylists or multipleChannels). You can set values for snippet.type, snippet.title, snippet.position, contentDetails.playlists, and contentDetails.channels.
For method-specific error responses, see channelSections.insert errors. For code examples, see channelSections.insert code snippets.
HTTP request
POST https://youtube.googleapis.com/youtube/v3/channelSections
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
part[] |
Required. Serves two purposes in this operation: identifies the properties that the write operation sets and the properties that the API response includes. Valid values are |
onBehalfOfContentOwner |
This parameter can only be used in a properly authorized request, and is intended exclusively for YouTube content partners. The To add a channel section to a channel managed by the content owner, also specify the |
onBehalfOfContentOwnerChannel |
This parameter can only be used in a properly authorized request, and is intended exclusively for YouTube content partners. The This parameter allows content owners to authenticate once and perform actions on behalf of the specified channel without providing authentication credentials for each separate channel. |
Request body
The request body contains an instance of ChannelSection.
Response body
If successful, the response body contains a newly created instance of ChannelSection.
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.