Inserts a new resource into this collection.
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/youtube.upload
- 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> videos insert ...
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:
Video:
age-gating:
alcohol-content: boolean
restricted: boolean
video-game-rating: string
content-details:
caption: string
content-rating:
acb-rating: string
agcom-rating: string
anatel-rating: string
bbfc-rating: string
bfvc-rating: string
bmukk-rating: string
catv-rating: string
catvfr-rating: string
cbfc-rating: string
ccc-rating: string
cce-rating: string
chfilm-rating: string
chvrs-rating: string
cicf-rating: string
cna-rating: string
cnc-rating: string
csa-rating: string
cscf-rating: string
czfilm-rating: string
djctq-rating: string
djctq-rating-reasons: [string]
ecbmct-rating: string
eefilm-rating: string
egfilm-rating: string
eirin-rating: string
fcbm-rating: string
fco-rating: string
fmoc-rating: string
fpb-rating: string
fpb-rating-reasons: [string]
fsk-rating: string
grfilm-rating: string
icaa-rating: string
ifco-rating: string
ilfilm-rating: string
incaa-rating: string
kfcb-rating: string
kijkwijzer-rating: string
kmrb-rating: string
lsf-rating: string
mccaa-rating: string
mccyp-rating: string
mcst-rating: string
mda-rating: string
medietilsynet-rating: string
meku-rating: string
mena-mpaa-rating: string
mibac-rating: string
moc-rating: string
moctw-rating: string
mpaa-rating: string
mpaat-rating: string
mtrcb-rating: string
nbc-rating: string
nbcpl-rating: string
nfrc-rating: string
nfvcb-rating: string
nkclv-rating: string
nmc-rating: string
oflc-rating: string
pefilm-rating: string
rcnof-rating: string
resorteviolencia-rating: string
rtc-rating: string
rte-rating: string
russia-rating: string
skfilm-rating: string
smais-rating: string
smsa-rating: string
tvpg-rating: string
yt-rating: string
country-restriction:
allowed: boolean
exception: [string]
definition: string
dimension: string
duration: string
has-custom-thumbnail: boolean
licensed-content: boolean
projection: string
region-restriction:
allowed: [string]
blocked: [string]
etag: string
file-details:
bitrate-bps: string
container: string
creation-time: string
duration-ms: string
file-name: string
file-size: string
file-type: string
id: string
kind: string
live-streaming-details:
active-live-chat-id: string
actual-end-time: string
actual-start-time: string
concurrent-viewers: string
scheduled-end-time: string
scheduled-start-time: string
monetization-details:
access:
allowed: boolean
exception: [string]
player:
embed-height: string
embed-html: string
embed-width: string
processing-details:
editor-suggestions-availability: string
file-details-availability: string
processing-failure-reason: string
processing-issues-availability: string
processing-progress:
parts-processed: string
parts-total: string
time-left-ms: string
processing-status: string
tag-suggestions-availability: string
thumbnails-availability: string
recording-details:
location:
altitude: number
latitude: number
longitude: number
location-description: string
recording-date: string
snippet:
category-id: string
channel-id: string
channel-title: string
default-audio-language: string
default-language: string
description: string
live-broadcast-content: string
localized:
description: string
title: string
published-at: string
tags: [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
dislike-count: int64
favorite-count: int64
like-count: int64
view-count: int64
status:
embeddable: boolean
failure-reason: string
license: string
made-for-kids: boolean
privacy-status: string
public-stats-viewable: boolean
publish-at: string
rejection-reason: string
self-declared-made-for-kids: boolean
upload-status: string
suggestions:
editor-suggestions: [string]
processing-errors: [string]
processing-hints: [string]
processing-warnings: [string]
topic-details:
relevant-topic-ids: [string]
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 .age-gating alcohol-content=false
- Indicates whether or not the video has alcoholic beverage content. Only users of legal purchasing age in a particular country, as identified by ICAP, can view the content.
restricted=false
- Age-restricted trailers. For redband trailers and adult-rated video-games. Only users aged 18+ can view the content. The the field is true the content is restricted to viewers aged 18+. Otherwise The field won't be present.
-
video-game-rating=amet.
- Video game rating, if any.
-
..content-details caption=et
- The value of captions indicates whether the video has captions or not.
content-rating acb-rating=ut
- The video's Australian Classification Board (ACB) or Australian Communications and Media Authority (ACMA) rating. ACMA ratings are used to classify children's television programming.
agcom-rating=et
- The video's rating from Italy's Autorità per le Garanzie nelle Comunicazioni (AGCOM).
anatel-rating=et
- The video's Anatel (Asociación Nacional de Televisión) rating for Chilean television.
bbfc-rating=at
- The video's British Board of Film Classification (BBFC) rating.
bfvc-rating=sed
- The video's rating from Thailand's Board of Film and Video Censors.
bmukk-rating=stet
- The video's rating from the Austrian Board of Media Classification (Bundesministerium für Unterricht, Kunst und Kultur).
catv-rating=sadipscing
- Rating system for Canadian TV - Canadian TV Classification System The video's rating from the Canadian Radio-Television and Telecommunications Commission (CRTC) for Canadian English-language broadcasts. For more information, see the Canadian Broadcast Standards Council website.
catvfr-rating=voluptua.
- The video's rating from the Canadian Radio-Television and Telecommunications Commission (CRTC) for Canadian French-language broadcasts. For more information, see the Canadian Broadcast Standards Council website.
cbfc-rating=et
- The video's Central Board of Film Certification (CBFC - India) rating.
ccc-rating=clita
- The video's Consejo de Calificación Cinematográfica (Chile) rating.
cce-rating=sit
- The video's rating from Portugal's Comissão de Classificação de Espect´culos.
chfilm-rating=rebum.
- The video's rating in Switzerland.
chvrs-rating=sanctus
- The video's Canadian Home Video Rating System (CHVRS) rating.
cicf-rating=no
- The video's rating from the Commission de Contrôle des Films (Belgium).
cna-rating=stet
- The video's rating from Romania's CONSILIUL NATIONAL AL AUDIOVIZUALULUI (CNA).
cnc-rating=diam
- Rating system in France - Commission de classification cinematographique
csa-rating=ipsum
- The video's rating from France's Conseil supérieur de l’audiovisuel, which rates broadcast content.
cscf-rating=eos
- The video's rating from Luxembourg's Commission de surveillance de la classification des films (CSCF).
czfilm-rating=erat
- The video's rating in the Czech Republic.
djctq-rating=at
- The video's Departamento de Justiça, Classificação, Qualificação e Títulos (DJCQT - Brazil) rating.
djctq-rating-reasons=amet
- Reasons that explain why the video received its DJCQT (Brazil) rating.
- Each invocation of this argument appends the given value to the array.
ecbmct-rating=justo
- Rating system in Turkey - Evaluation and Classification Board of the Ministry of Culture and Tourism
eefilm-rating=justo
- The video's rating in Estonia.
egfilm-rating=eirmod
- The video's rating in Egypt.
eirin-rating=duo
- The video's Eirin (映倫) rating. Eirin is the Japanese rating system.
fcbm-rating=sanctus
- The video's rating from Malaysia's Film Censorship Board.
fco-rating=aliquyam
- The video's rating from Hong Kong's Office for Film, Newspaper and Article Administration.
fmoc-rating=voluptua.
- This property has been deprecated. Use the contentDetails.contentRating.cncRating instead.
fpb-rating=eirmod
- The video's rating from South Africa's Film and Publication Board.
fpb-rating-reasons=sanctus
- Reasons that explain why the video received its FPB (South Africa) rating.
- Each invocation of this argument appends the given value to the array.
fsk-rating=rebum.
- The video's Freiwillige Selbstkontrolle der Filmwirtschaft (FSK - Germany) rating.
grfilm-rating=kasd
- The video's rating in Greece.
icaa-rating=voluptua.
- The video's Instituto de la Cinematografía y de las Artes Audiovisuales (ICAA - Spain) rating.
ifco-rating=erat
- The video's Irish Film Classification Office (IFCO - Ireland) rating. See the IFCO website for more information.
ilfilm-rating=nonumy
- The video's rating in Israel.
incaa-rating=magna
- The video's INCAA (Instituto Nacional de Cine y Artes Audiovisuales - Argentina) rating.
kfcb-rating=gubergren
- The video's rating from the Kenya Film Classification Board.
kijkwijzer-rating=lorem
- The video's NICAM/Kijkwijzer rating from the Nederlands Instituut voor de Classificatie van Audiovisuele Media (Netherlands).
kmrb-rating=aliquyam
- The video's Korea Media Rating Board (영상물등급위원회) rating. The KMRB rates videos in South Korea.
lsf-rating=diam
- The video's rating from Indonesia's Lembaga Sensor Film.
mccaa-rating=vero
- The video's rating from Malta's Film Age-Classification Board.
mccyp-rating=erat
- The video's rating from the Danish Film Institute's (Det Danske Filminstitut) Media Council for Children and Young People.
mcst-rating=dolore
- The video's rating system for Vietnam - MCST
mda-rating=sit
- The video's rating from Singapore's Media Development Authority (MDA) and, specifically, it's Board of Film Censors (BFC).
medietilsynet-rating=consetetur
- The video's rating from Medietilsynet, the Norwegian Media Authority.
meku-rating=amet
- The video's rating from Finland's Kansallinen Audiovisuaalinen Instituutti (National Audiovisual Institute).
mena-mpaa-rating=magna
- The rating system for MENA countries, a clone of MPAA. It is needed to prevent titles go live w/o additional QC check, since some of them can be inappropriate for the countries at all. See b/33408548 for more details.
mibac-rating=sanctus
- The video's rating from the Ministero dei Beni e delle Attività Culturali e del Turismo (Italy).
moc-rating=clita
- The video's Ministerio de Cultura (Colombia) rating.
moctw-rating=invidunt
- The video's rating from Taiwan's Ministry of Culture (文化部).
mpaa-rating=accusam
- The video's Motion Picture Association of America (MPAA) rating.
mpaat-rating=amet.
- The rating system for trailer, DVD, and Ad in the US. See http://movielabs.com/md/ratings/v2.3/html/US_MPAAT_Ratings.html.
mtrcb-rating=sanctus
- The video's rating from the Movie and Television Review and Classification Board (Philippines).
nbc-rating=invidunt
- The video's rating from the Maldives National Bureau of Classification.
nbcpl-rating=sit
- The video's rating in Poland.
nfrc-rating=sed
- The video's rating from the Bulgarian National Film Center.
nfvcb-rating=duo
- The video's rating from Nigeria's National Film and Video Censors Board.
nkclv-rating=et
- The video's rating from the Nacionãlais Kino centrs (National Film Centre of Latvia).
nmc-rating=dolor
- The National Media Council ratings system for United Arab Emirates.
oflc-rating=et
- The video's Office of Film and Literature Classification (OFLC - New Zealand) rating.
pefilm-rating=sed
- The video's rating in Peru.
rcnof-rating=justo
- The video's rating from the Hungarian Nemzeti Filmiroda, the Rating Committee of the National Office of Film.
resorteviolencia-rating=sadipscing
- The video's rating in Venezuela.
rtc-rating=accusam
- The video's General Directorate of Radio, Television and Cinematography (Mexico) rating.
rte-rating=takimata
- The video's rating from Ireland's Raidió Teilifís Éireann.
russia-rating=invidunt
- The video's National Film Registry of the Russian Federation (MKRF - Russia) rating.
skfilm-rating=invidunt
- The video's rating in Slovakia.
smais-rating=gubergren
- The video's rating in Iceland.
smsa-rating=sed
- The video's rating from Statens medieråd (Sweden's National Media Council).
tvpg-rating=justo
- The video's TV Parental Guidelines (TVPG) rating.
-
yt-rating=amet
- A rating that YouTube uses to identify age-restricted content.
-
..country-restriction allowed=false
- The value of allowed indicates whether the access to the policy is allowed or denied by default.
-
exception=et
- A list of region codes that identify countries where the default policy do not apply.
- Each invocation of this argument appends the given value to the array.
-
.. definition=kasd
- The value of definition indicates whether the video is available in high definition or only in standard definition.
dimension=gubergren
- The value of dimension indicates whether the video is available in 3D or in 2D.
duration=et
- The length of the video. The tag value is an ISO 8601 duration in the format PT#M#S, in which the letters PT indicate that the value specifies a period of time, and the letters M and S refer to length in minutes and seconds, respectively. The # characters preceding the M and S letters are both integers that specify the number of minutes (or seconds) of the video. For example, a value of PT15M51S indicates that the video is 15 minutes and 51 seconds long.
has-custom-thumbnail=false
- Indicates whether the video uploader has provided a custom thumbnail image for the video. This property is only visible to the video uploader.
licensed-content=true
- The value of is_license_content indicates whether the video is licensed content.
projection=at
- Specifies the projection format of the video.
region-restriction allowed=et
- A list of region codes that identify countries where the video is viewable. If this property is present and a country is not listed in its value, then the video is blocked from appearing in that country. If this property is present and contains an empty list, the video is blocked in all countries.
- Each invocation of this argument appends the given value to the array.
-
blocked=dolor
- A list of region codes that identify countries where the video is blocked. If this property is present and a country is not listed in its value, then the video is viewable in that country. If this property is present and contains an empty list, the video is viewable in all countries.
- Each invocation of this argument appends the given value to the array.
-
... etag=clita
- Etag of this resource.
file-details bitrate-bps=tempor
- The uploaded video file's combined (video and audio) bitrate in bits per second.
container=amet
- The uploaded video file's container format.
creation-time=dolor
- The date and time when the uploaded video file was created. The value is specified in ISO 8601 format. Currently, the following ISO 8601 formats are supported: - Date only: YYYY-MM-DD - Naive time: YYYY-MM-DDTHH:MM:SS - Time with timezone: YYYY-MM-DDTHH:MM:SS+HH:MM
duration-ms=dolore
- The length of the uploaded video in milliseconds.
file-name=clita
- The uploaded file's name. This field is present whether a video file or another type of file was uploaded.
file-size=et
- The uploaded file's size in bytes. This field is present whether a video file or another type of file was uploaded.
-
file-type=diam
- The uploaded file's type as detected by YouTube's video processing engine. Currently, YouTube only processes video files, but this field is present whether a video file or another type of file was uploaded.
-
.. id=sanctus
- The ID that YouTube uses to uniquely identify the video.
kind=ipsum
- Identifies what kind of resource this is. Value: the fixed string "youtube#video".
live-streaming-details active-live-chat-id=lorem
- The ID of the currently active live chat attached to this video. This field is filled only if the video is a currently live broadcast that has live chat. Once the broadcast transitions to complete this field will be removed and the live chat closed down. For persistent broadcasts that live chat id will no longer be tied to this video but rather to the new video being displayed at the persistent page.
actual-end-time=sed
- The time that the broadcast actually ended. This value will not be available until the broadcast is over.
actual-start-time=tempor
- The time that the broadcast actually started. This value will not be available until the broadcast begins.
concurrent-viewers=et
- The number of viewers currently watching the broadcast. The property and its value will be present if the broadcast has current viewers and the broadcast owner has not hidden the viewcount for the video. Note that YouTube stops tracking the number of concurrent viewers for a broadcast when the broadcast ends. So, this property would not identify the number of viewers watching an archived video of a live broadcast that already ended.
scheduled-end-time=et
- The time that the broadcast is scheduled to end. If the value is empty or the property is not present, then the broadcast is scheduled to contiue indefinitely.
-
scheduled-start-time=sadipscing
- The time that the broadcast is scheduled to begin.
-
..monetization-details.access allowed=false
- The value of allowed indicates whether the access to the policy is allowed or denied by default.
-
exception=sed
- A list of region codes that identify countries where the default policy do not apply.
- Each invocation of this argument appends the given value to the array.
-
...player embed-height=et
- No description provided.
embed-html=sea
- An <iframe> tag that embeds a player that will play the video.
-
embed-width=ut
- The embed width
-
..processing-details editor-suggestions-availability=et
- This value indicates whether video editing suggestions, which might improve video quality or the playback experience, are available for the video. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request.
file-details-availability=sanctus
- This value indicates whether file details are available for the uploaded video. You can retrieve a video's file details by requesting the fileDetails part in your videos.list() request.
processing-failure-reason=magna
- The reason that YouTube failed to process the video. This property will only have a value if the processingStatus property's value is failed.
processing-issues-availability=magna
- This value indicates whether the video processing engine has generated suggestions that might improve YouTube's ability to process the the video, warnings that explain video processing problems, or errors that cause video processing problems. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request.
processing-progress parts-processed=ea
- The number of parts of the video that YouTube has already processed. You can estimate the percentage of the video that YouTube has already processed by calculating: 100 * parts_processed / parts_total Note that since the estimated number of parts could increase without a corresponding increase in the number of parts that have already been processed, it is possible that the calculated progress could periodically decrease while YouTube processes a video.
parts-total=no
- An estimate of the total number of parts that need to be processed for the video. The number may be updated with more precise estimates while YouTube processes the video.
-
time-left-ms=aliquyam
- An estimate of the amount of time, in millseconds, that YouTube needs to finish processing the video.
-
.. processing-status=sed
- The video's processing status. This value indicates whether YouTube was able to process the video or if the video is still being processed.
tag-suggestions-availability=dolores
- This value indicates whether keyword (tag) suggestions are available for the video. Tags can be added to a video's metadata to make it easier for other users to find the video. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request.
-
thumbnails-availability=invidunt
- This value indicates whether thumbnail images have been generated for the video.
-
..recording-details.location altitude=0.44314409260228127
- Altitude above the reference ellipsoid, in meters.
latitude=0.11445649675939595
- Latitude in degrees.
-
longitude=0.040412627400529755
- Longitude in degrees.
-
.. location-description=vero
- The text description of the location where the video was recorded.
-
recording-date=ipsum
- The date and time when the video was recorded.
-
..snippet category-id=no
- The YouTube video category associated with the video.
channel-id=rebum.
- The ID that YouTube uses to uniquely identify the channel that the video was uploaded to.
channel-title=est
- Channel title for the channel that the video belongs to.
default-audio-language=rebum.
- The default_audio_language property specifies the language spoken in the video's default audio track.
default-language=nonumy
- The language of the videos's default snippet.
description=rebum.
- The video's description. @mutable youtube.videos.insert youtube.videos.update
live-broadcast-content=et
- Indicates if the video is an upcoming/active live broadcast. Or it's "none" if the video is not an upcoming/active live broadcast.
localized description=et
- Localized version of the video's description.
-
title=aliquyam
- Localized version of the video's title.
-
.. published-at=sanctus
- The date and time when the video was uploaded.
tags=sed
- A list of keyword tags associated with the video. Tags may contain spaces.
- Each invocation of this argument appends the given value to the array.
thumbnails.default height=12
- (Optional) Height of the thumbnail image.
url=dolore
- The thumbnail image's URL.
-
width=17
- (Optional) Width of the thumbnail image.
-
..high height=46
- (Optional) Height of the thumbnail image.
url=takimata
- The thumbnail image's URL.
-
width=80
- (Optional) Width of the thumbnail image.
-
..maxres height=34
- (Optional) Height of the thumbnail image.
url=ipsum
- The thumbnail image's URL.
-
width=9
- (Optional) Width of the thumbnail image.
-
..medium height=21
- (Optional) Height of the thumbnail image.
url=justo
- The thumbnail image's URL.
-
width=34
- (Optional) Width of the thumbnail image.
-
..standard height=66
- (Optional) Height of the thumbnail image.
url=dolor
- The thumbnail image's URL.
-
width=32
- (Optional) Width of the thumbnail image.
-
... title=amet
- The video's title. @mutable youtube.videos.insert youtube.videos.update
-
..statistics comment-count=-98
- The number of comments for the video.
dislike-count=-46
- The number of users who have indicated that they disliked the video by giving it a negative rating.
favorite-count=-13
- The number of users who currently have the video marked as a favorite video.
like-count=-77
- The number of users who have indicated that they liked the video by giving it a positive rating.
-
view-count=-66
- The number of times the video has been viewed.
-
..status embeddable=true
- This value indicates if the video can be embedded on another website. @mutable youtube.videos.insert youtube.videos.update
failure-reason=gubergren
- This value explains why a video failed to upload. This property is only present if the uploadStatus property indicates that the upload failed.
license=kasd
- The video's license. @mutable youtube.videos.insert youtube.videos.update
made-for-kids=true
- No description provided.
privacy-status=kasd
- The video's privacy status.
public-stats-viewable=true
- This value indicates if the extended video statistics on the watch page can be viewed by everyone. Note that the view count, likes, etc will still be visible if this is disabled. @mutable youtube.videos.insert youtube.videos.update
publish-at=labore
- The date and time when the video is scheduled to publish. It can be set only if the privacy status of the video is private..
rejection-reason=et
- This value explains why YouTube rejected an uploaded video. This property is only present if the uploadStatus property indicates that the upload was rejected.
self-declared-made-for-kids=true
- No description provided.
-
upload-status=voluptua.
- The status of the uploaded video.
-
..suggestions editor-suggestions=no
- A list of video editing operations that might improve the video quality or playback experience of the uploaded video.
- Each invocation of this argument appends the given value to the array.
processing-errors=ut
- A list of errors that will prevent YouTube from successfully processing the uploaded video video. These errors indicate that, regardless of the video's current processing status, eventually, that status will almost certainly be failed.
- Each invocation of this argument appends the given value to the array.
processing-hints=dolore
- A list of suggestions that may improve YouTube's ability to process the video.
- Each invocation of this argument appends the given value to the array.
-
processing-warnings=takimata
- A list of reasons why YouTube may have difficulty transcoding the uploaded video or that might result in an erroneous transcoding. These warnings are generated before YouTube actually processes the uploaded video file. In addition, they identify issues that are unlikely to cause the video processing to fail but that might cause problems such as sync issues, video artifacts, or a missing audio track.
- Each invocation of this argument appends the given value to the array.
-
..topic-details relevant-topic-ids=invidunt
- Similar to topic_id, except that these topics are merely relevant to the video. These are topics that may be mentioned in, or appear in the video. You can retrieve information about each topic using Freebase Topic API.
- Each invocation of this argument appends the given value to the array.
topic-categories=sed
- A list of Wikipedia URLs that provide a high-level description of the video's content.
- Each invocation of this argument appends the given value to the array.
topic-ids=et
- A list of Freebase topic IDs that are centrally associated with the video. These are topics that are centrally featured in the video, and it can be said that the video is mainly about each of these. You can retrieve information about each topic using the < a href="http://wiki.freebase.com/wiki/Topic_API">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.
Required Upload Flags
This method supports the upload of data, which requires all of the following flags to be set:
- -u simple
- simple - Upload media all at once.
- -f file
- Path to file to upload. It must be seekable.
The following flag may be set:
- -m mime
- the mime type, like 'application/octet-stream', which is the default
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.
- out specifies the destination to which to write the server's result to.
It will be a JSON-encoded structure.
The destination may be
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 auto-levels=boolean
- Should auto-levels be applied to the upload.
-
-p notify-subscribers=boolean
- Notify the channel subscribers about the new video. As default, the notification is enabled.
-
-p on-behalf-of-content-owner=string
- Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who 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 CMS account that the user authenticates with must be linked to the specified YouTube content owner.
-
-p on-behalf-of-content-owner-channel=string
- This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
-
-p stabilize=boolean
- Should stabilize be applied to the upload.
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").