Updates an existing resource.

Scopes

You will need authorization for at least one of the following scopes to make a valid call:

  • https://www.googleapis.com/auth/youtube
  • https://www.googleapis.com/auth/youtube.force-ssl
  • https://www.googleapis.com/auth/youtubepartner

If unset, the scope for this method defaults to https://www.googleapis.com/auth/youtube. You can set the scope for this method like this: youtube3 --scope <scope> channels update ...

Required Request Value

The request value is a data-structure with various fields. Each field may be a simple scalar or another data-structure. In the latter case it is advised to set the field-cursor to the data-structure's field to specify values more concisely.

For example, a structure like this:

Channel:
  audit-details:
    community-guidelines-good-standing: boolean
    content-id-claims-good-standing: boolean
    copyright-strikes-good-standing: boolean
  branding-settings:
    channel:
      country: string
      default-language: string
      default-tab: string
      description: string
      featured-channels-title: string
      featured-channels-urls: [string]
      keywords: string
      moderate-comments: boolean
      profile-color: string
      show-browse-view: boolean
      show-related-channels: boolean
      title: string
      tracking-analytics-account-id: string
      unsubscribed-trailer: string
    image:
      background-image-url:
        default: string
        default-language:
          value: string
      banner-external-url: string
      banner-image-url: string
      banner-mobile-extra-hd-image-url: string
      banner-mobile-hd-image-url: string
      banner-mobile-image-url: string
      banner-mobile-low-image-url: string
      banner-mobile-medium-hd-image-url: string
      banner-tablet-extra-hd-image-url: string
      banner-tablet-hd-image-url: string
      banner-tablet-image-url: string
      banner-tablet-low-image-url: string
      banner-tv-high-image-url: string
      banner-tv-image-url: string
      banner-tv-low-image-url: string
      banner-tv-medium-image-url: string
      large-branded-banner-image-imap-script:
        default: string
        default-language:
          value: string
      large-branded-banner-image-url:
        default: string
        default-language:
          value: string
      small-branded-banner-image-imap-script:
        default: string
        default-language:
          value: string
      small-branded-banner-image-url:
        default: string
        default-language:
          value: string
      tracking-image-url: string
      watch-icon-image-url: string
    watch:
      background-color: string
      featured-playlist-id: string
      text-color: string
  content-details:
    related-playlists:
      favorites: string
      likes: string
      uploads: string
      watch-history: string
      watch-later: string
  content-owner-details:
    content-owner: string
    time-linked: string
  etag: string
  id: string
  kind: string
  snippet:
    country: string
    custom-url: string
    default-language: string
    description: string
    localized:
      description: string
      title: string
    published-at: string
    thumbnails:
      default:
        height: integer
        url: string
        width: integer
      high:
        height: integer
        url: string
        width: integer
      maxres:
        height: integer
        url: string
        width: integer
      medium:
        height: integer
        url: string
        width: integer
      standard:
        height: integer
        url: string
        width: integer
    title: string
  statistics:
    comment-count: int64
    hidden-subscriber-count: boolean
    subscriber-count: int64
    video-count: int64
    view-count: int64
  status:
    is-linked: boolean
    long-uploads-status: string
    made-for-kids: boolean
    privacy-status: string
    self-declared-made-for-kids: boolean
  topic-details:
    topic-categories: [string]
    topic-ids: [string]

can be set completely with the following arguments which are assumed to be executed in the given order. Note how the cursor position is adjusted to the respective structures, allowing simple field names to be used most of the time.

  • -r .audit-details community-guidelines-good-standing=false
    • Whether or not the channel respects the community guidelines.
  • content-id-claims-good-standing=true
    • Whether or not the channel has any unresolved claims.
  • copyright-strikes-good-standing=true

    • Whether or not the channel has any copyright strikes.
  • ..branding-settings.channel country=voluptua.

    • The country of the channel.
  • default-language=et
    • No description provided.
  • default-tab=erat
    • Which content tab users should see when viewing the channel.
  • description=consetetur
    • Specifies the channel description.
  • featured-channels-title=amet.
    • Title for the featured channels tab.
  • featured-channels-urls=sed
    • The list of featured channels.
    • Each invocation of this argument appends the given value to the array.
  • keywords=takimata
    • Lists keywords associated with the channel, comma-separated.
  • moderate-comments=true
    • Whether user-submitted comments left on the channel page need to be approved by the channel owner to be publicly visible.
  • profile-color=et
    • A prominent color that can be rendered on this channel page.
  • show-browse-view=false
    • Whether the tab to browse the videos should be displayed.
  • show-related-channels=false
    • Whether related channels should be proposed.
  • title=amet.
    • Specifies the channel title.
  • tracking-analytics-account-id=ea
    • The ID for a Google Analytics account to track and measure traffic to the channels.
  • unsubscribed-trailer=sadipscing

    • The trailer of the channel, for users that are not subscribers.
  • ..image.background-image-url default=lorem

    • No description provided.
  • default-language value=invidunt

    • No description provided.
  • ... banner-external-url=no

    • This is generated when a ChannelBanner.Insert request has succeeded for the given channel.
  • banner-image-url=est
    • Banner image. Desktop size (1060x175).
  • banner-mobile-extra-hd-image-url=at
    • Banner image. Mobile size high resolution (1440x395).
  • banner-mobile-hd-image-url=sed
    • Banner image. Mobile size high resolution (1280x360).
  • banner-mobile-image-url=sit
    • Banner image. Mobile size (640x175).
  • banner-mobile-low-image-url=et
    • Banner image. Mobile size low resolution (320x88).
  • banner-mobile-medium-hd-image-url=tempor
    • Banner image. Mobile size medium/high resolution (960x263).
  • banner-tablet-extra-hd-image-url=aliquyam
    • Banner image. Tablet size extra high resolution (2560x424).
  • banner-tablet-hd-image-url=ipsum
    • Banner image. Tablet size high resolution (2276x377).
  • banner-tablet-image-url=et
    • Banner image. Tablet size (1707x283).
  • banner-tablet-low-image-url=sanctus
    • Banner image. Tablet size low resolution (1138x188).
  • banner-tv-high-image-url=lorem
    • Banner image. TV size high resolution (1920x1080).
  • banner-tv-image-url=est
    • Banner image. TV size extra high resolution (2120x1192).
  • banner-tv-low-image-url=sed
    • Banner image. TV size low resolution (854x480).
  • banner-tv-medium-image-url=diam
    • Banner image. TV size medium resolution (1280x720).
  • large-branded-banner-image-imap-script default=dolores
    • No description provided.
  • default-language value=dolores

    • No description provided.
  • ...large-branded-banner-image-url default=et

    • No description provided.
  • default-language value=sed

    • No description provided.
  • ...small-branded-banner-image-imap-script default=no

    • No description provided.
  • default-language value=et

    • No description provided.
  • ...small-branded-banner-image-url default=elitr

    • No description provided.
  • default-language value=sed

    • No description provided.
  • ... tracking-image-url=no

    • The URL for a 1px by 1px tracking pixel that can be used to collect statistics for views of the channel or video pages.
  • watch-icon-image-url=nonumy

    • No description provided.
  • ..watch background-color=at

    • The text color for the video watch page's branded area.
  • featured-playlist-id=sadipscing
    • An ID that uniquely identifies a playlist that displays next to the video player.
  • text-color=aliquyam

    • The background color for the video watch page's branded area.
  • ...content-details.related-playlists favorites=dolores

    • The ID of the playlist that contains the channel"s favorite videos. Use the playlistItems.insert and playlistItems.delete to add or remove items from that list.
  • likes=sadipscing
    • The ID of the playlist that contains the channel"s liked videos. Use the playlistItems.insert and playlistItems.delete to add or remove items from that list.
  • uploads=erat
    • The ID of the playlist that contains the channel"s uploaded videos. Use the videos.insert method to upload new videos and the videos.delete method to delete previously uploaded videos.
  • watch-history=aliquyam
    • The ID of the playlist that contains the channel"s watch history. Use the playlistItems.insert and playlistItems.delete to add or remove items from that list.
  • watch-later=amet

    • The ID of the playlist that contains the channel"s watch later playlist. Use the playlistItems.insert and playlistItems.delete to add or remove items from that list.
  • ...content-owner-details content-owner=est

    • The ID of the content owner linked to the channel.
  • time-linked=et

    • The date and time when the channel was linked to the content owner.
  • .. etag=sea

    • Etag of this resource.
  • id=consetetur
    • The ID that YouTube uses to uniquely identify the channel.
  • kind=consetetur
    • Identifies what kind of resource this is. Value: the fixed string "youtube#channel".
  • snippet country=stet
    • The country of the channel.
  • custom-url=est
    • The custom url of the channel.
  • default-language=aliquyam
    • The language of the channel's default title and description.
  • description=elitr
    • The description of the channel.
  • localized description=duo
    • The localized strings for channel's description.
  • title=diam

    • The localized strings for channel's title.
  • .. published-at=est

    • The date and time that the channel was created.
  • thumbnails.default height=48
    • (Optional) Height of the thumbnail image.
  • url=sed
    • The thumbnail image's URL.
  • width=26

    • (Optional) Width of the thumbnail image.
  • ..high height=45

    • (Optional) Height of the thumbnail image.
  • url=ea
    • The thumbnail image's URL.
  • width=86

    • (Optional) Width of the thumbnail image.
  • ..maxres height=82

    • (Optional) Height of the thumbnail image.
  • url=eos
    • The thumbnail image's URL.
  • width=33

    • (Optional) Width of the thumbnail image.
  • ..medium height=91

    • (Optional) Height of the thumbnail image.
  • url=et
    • The thumbnail image's URL.
  • width=24

    • (Optional) Width of the thumbnail image.
  • ..standard height=17

    • (Optional) Height of the thumbnail image.
  • url=eirmod
    • The thumbnail image's URL.
  • width=50

    • (Optional) Width of the thumbnail image.
  • ... title=accusam

    • The channel's title.
  • ..statistics comment-count=-47

    • The number of comments for the channel.
  • hidden-subscriber-count=true
    • Whether or not the number of subscribers is shown for this user.
  • subscriber-count=-81
    • The number of subscribers that the channel has.
  • video-count=-73
    • The number of videos uploaded to the channel.
  • view-count=-10

    • The number of times the channel has been viewed.
  • ..status is-linked=true

    • If true, then the user is linked to either a YouTube username or G+ account. Otherwise, the user doesn't have a public YouTube identity.
  • long-uploads-status=lorem
    • The long uploads status of this channel. See https://support.google.com/youtube/answer/71673 for more information.
  • made-for-kids=false
    • No description provided.
  • privacy-status=dolor
    • Privacy status of the channel.
  • self-declared-made-for-kids=true

    • No description provided.
  • ..topic-details topic-categories=erat

    • A list of Wikipedia URLs that describe the channel's content.
    • Each invocation of this argument appends the given value to the array.
  • topic-ids=sea
    • A list of Freebase topic IDs associated with the channel. You can retrieve information about each topic using the Freebase Topic API.
    • Each invocation of this argument appends the given value to the array.

About Cursors

The cursor position is key to comfortably set complex nested structures. The following rules apply:

  • The cursor position is always set relative to the current one, unless the field name starts with the . character. Fields can be nested such as in -r f.s.o .
  • The cursor position is set relative to the top-level structure if it starts with ., e.g. -r .s.s
  • You can also set nested fields without setting the cursor explicitly. For example, to set a value relative to the current cursor position, you would specify -r struct.sub_struct=bar.
  • You can move the cursor one level up by using ... Each additional . moves it up one additional level. E.g. ... would go three levels up.

Optional Output Flags

The method's return value a JSON encoded structure, which will be written to standard output by default.

  • -o out
    • out specifies the destination to which to write the server's result to. It will be a JSON-encoded structure. The destination may be - to indicate standard output, or a filepath that is to contain the received bytes. If unset, it defaults to standard output.

Optional Method Properties

You may set the following properties to further configure the call. Please note that -p is followed by one or more key-value-pairs, and is called like this -p k1=v1 k2=v2 even though the listing below repeats the -p for completeness.

  • -p on-behalf-of-content-owner=string
    • 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.

Optional General Properties

The following properties can configure any call, and are not specific to this method.

  • -p $-xgafv=string

    • V1 error format.
  • -p access-token=string

    • OAuth access token.
  • -p alt=string

    • Data format for response.
  • -p callback=string

    • JSONP
  • -p fields=string

    • Selector specifying which fields to include in a partial response.
  • -p key=string

    • API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • -p oauth-token=string

    • OAuth 2.0 token for the current user.
  • -p pretty-print=boolean

    • Returns response with indentations and line breaks.
  • -p quota-user=string

    • Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  • -p upload-type=string

    • Legacy upload protocol for media (e.g. "media", "multipart").
  • -p upload-protocol=string

    • Upload protocol for media (e.g. "raw", "multipart").