REST Resource: assetRelationships

  • AssetRelationship resources define relationships between two assets, designating one as the parent and the other as the child.

  • The AssetRelationship resource is identified by a unique id and specifies the parentAssetId and childAssetId .

  • The JSON representation of an AssetRelationship includes the fields kind , id , parentAssetId , and childAssetId .

  • Three methods are available for AssetRelationship resources: delete to remove a relationship, insert to create a relationship, and list to retrieve relationships.

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 composition asserted asset contains sound recording assets, and each sound recording asset contains music video 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.
Design a Mobile Site
View Site in Mobile | Classic
Share by: