REST Resource: 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 (StatusReport)
    }
  ],
  "id": string
}
Fields
kind

string

The type of the API resource. For package resources, this value is youtubePartner#package.

uploaderName

string

The uploader name.

content

string

The package's metadata file contents.

locale

string

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[]

string

The list of customer IDs.

name

string

The package name.

type

string

The package type.

timeCreated

string

The package creation time. The value is specified in RFC 3339 (YYYY-MM-DDThh:mm:ss.000Z) format.

status

string

The package status.

statusReports[]

object (StatusReport)

The package status reports.

id

string

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

string

The content of the report message. Used only in Hybrid.

statusFileName

string

Status file name. Used only in Hybrid.

Methods

get

Retrieves information for the specified package.

insert

Inserts a metadata-only package.