Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Updates a channel's metadata. Note that this method currently only supports updates to the channel resource's brandingSettings and invideoPromotion objects and their child properties.
See: YouTube Data API Reference for youtube.channels.update
.
Synopsis
- type ChannelsUpdateResource = "youtube" :> ("v3" :> ("channels" :> (QueryParam "part" Text :> (QueryParam "onBehalfOfContentOwner" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Channel :> Put '[JSON] Channel))))))
- channelsUpdate :: Text -> Channel -> ChannelsUpdate
- data ChannelsUpdate
- chaPart :: Lens' ChannelsUpdate Text
- chaPayload :: Lens' ChannelsUpdate Channel
- chaOnBehalfOfContentOwner :: Lens' ChannelsUpdate (Maybe Text)
REST Resource
type ChannelsUpdateResource = "youtube" :> ("v3" :> ("channels" :> (QueryParam "part" Text :> (QueryParam "onBehalfOfContentOwner" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Channel :> Put '[JSON] Channel)))))) Source #
A resource alias for youtube.channels.update
method which the
ChannelsUpdate
request conforms to.
Creating a Request
Creates a value of ChannelsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ChannelsUpdate Source #
Updates a channel's metadata. Note that this method currently only supports updates to the channel resource's brandingSettings and invideoPromotion objects and their child properties.
See: channelsUpdate
smart constructor.
Instances
Request Lenses
chaPart :: Lens' ChannelsUpdate Text Source #
The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The API currently only allows the parameter value to be set to either brandingSettings or invideoPromotion. (You cannot update both of those parts with a single request.) Note that this method overrides the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies.
chaPayload :: Lens' ChannelsUpdate Channel Source #
Multipart request metadata.
chaOnBehalfOfContentOwner :: Lens' ChannelsUpdate (Maybe Text) Source #
The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner.