Page Summary
-
This endpoint inserts a metadata-only package using a
POSTrequest to the specified URL:https://youtubepartner.googleapis.com/youtube/partner/v1/package. -
The request accepts an
onBehalfOfContentOwnerquery parameter, which is a string used to identify the content owner for users associated with multiple content owners. -
The request body must contain an instance of the
Packageresource, defining the package's metadata. -
A successful response will include a JSON representation containing a
status, an array oferrors(if any), akindindicating the response type, and the insertedpackageresource. -
The request requires the OAuth scope
https://www.googleapis.com/auth/youtubepartnerfor authorization.
Inserts a metadata-only package.
HTTP request
POST https://youtubepartner.googleapis.com/youtube/partner/v1/package
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
onBehalfOfContentOwner
|
The |
Request body
The request body contains an instance of Package
.
Response body
A package
resource and possible errors or warnings returned in response to package.insert
request.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{ "status" : string , "errors" : [ { object ( |
| Fields | |
|---|---|
status
|
The package insert status. Indicates whether the insert operation completed successfully or identifies the general cause of failure. For most cases where the insert operation failed, the errors are described in the API response's |
errors[]
|
The list of errors and/or warnings. |
kind
|
The type of the API response. For this operation, the value is |
resource
|
The |
Authorization scopes
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/youtubepartner
For more information, see the OAuth 2.0 Overview .

