Page Summary
-
AssetRelationshipresources define relationships between two assets, designating one as the parent and the other as the child. -
The
AssetRelationshipresource is identified by a uniqueidand specifies theparentAssetIdandchildAssetId. -
The JSON representation of an
AssetRelationshipincludes the fieldskind,id,parentAssetId, andchildAssetId. -
Three methods are available for
AssetRelationshipresources:deleteto remove a relationship,insertto create a relationship, andlistto 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
|
The type of the API resource. For this resource, the value is |
id
|
A value that YouTube assigns and uses to uniquely identify the asset relationship. |
parentAssetId
|
The ID of the parent (containing) asset. |
childAssetId
|
The ID of the child (contained) asset. |
Methods |
|
|---|---|
|
Deletes a relationship between two assets. |
|
Creates a relationship that links two assets. |
|
Retrieves a list of relationships for a given asset. |

