REST Resource: assetRelationships

Resource: AssetRelationship

An assetRelationship resource identifies two related assets in which one asset is treated as a parent (containing) asset and the other is a child (contained) asset. For example, a television show asset contains season assets, and each season asset contains episode assets.

JSON representation
{
  "kind": string,
  "id": string,
  "parentAssetId": string,
  "childAssetId": string
}
Fields
kind

string

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

id

string

A value that YouTube assigns and uses to uniquely identify the asset relationship.

parentAssetId

string

The ID of the parent (containing) asset.

childAssetId

string

The ID of the child (contained) asset.

Methods

delete

Deletes a relationship between two assets.

insert

Creates a relationship that links two assets.

list

Retrieves a list of relationships for a given asset.