Page Summary
-
A
packageresource represents a group of files delivered via web, SFTP, or other mechanisms, currently supporting the upload of a package with one metadata file or retrieving data about a previously uploaded package. -
The
packageresource's JSON representation includes details likekind,uploaderName,content,locale,customIds,name,type,timeCreated,status,statusReports, andid, all providing comprehensive information about the package. -
StatusReportobjects contain information describing the source of a package status report, includingstatusContentandstatusFileName, which are specifically used in Hybrid implementations. -
Available methods for managing
packageresources areget, which retrieves information for a specific package, andinsert, used to insert a metadata-only package.
Resource: Package
A package resource represents a group of files that is delivered via the web, SFTP, or another delivery mechanism. The API currently supports the ability to upload a package containing exactly one metadata file or to retrieve information about a previously uploaded package.
| JSON representation |
|---|
{
"kind": string,
"uploaderName": string,
"content": string,
"locale": string,
"customIds": [
string
],
"name": string,
"type": string,
"timeCreated": string,
"status": string,
"statusReports": [
{
object ( |
| Fields | |
|---|---|
kind |
The type of the API resource. For |
uploaderName |
The uploader name. |
content |
The package's metadata file contents. |
locale |
The desired locale of the error messages as defined in BCP 47 (http: //tools.ietf.org/html/bcp47). For example, "en-US" or "de". If not // specified we will return the error messages in English ("en"). |
customIds[] |
The list of customer IDs. |
name |
The package name. |
type |
The package type. |
timeCreated |
The package creation time. The value is specified in RFC 3339 ( |
status |
The package status. |
statusReports[] |
The package status reports. |
id |
An ID that YouTube assigns and uses to uniquely identify the package. |
StatusReport
This object contains information that describes the source of the package status report.
| JSON representation |
|---|
{ "statusContent": string, "statusFileName": string } |
| Fields | |
|---|---|
statusContent |
The content of the report message. Used only in Hybrid. |
statusFileName |
Status file name. Used only in Hybrid. |
Methods |
|
|---|---|
|
Retrieves information for the specified package. |
|
Inserts a metadata-only package. |