Resource relations:relation-types

Overview

The relations:relation-types resource represents all relation types that are available for a given asset.

The list of relation types does not only contain the types of concrete relations to other assets, but rather the relations types the asset can have potentially.

New in MC | Cloud UX 2019.5

Properties

The relations:relation-types resource has no properties.

relations:relation-type (multi-link)

An array of link relations for the relation types available for the asset. The relations:relation-type resources are returned as embedded resources.

Example

Example: relation-types of an asset in MediaCentral | Asset Management
 
{
   "_links": {
      "curies": [
         {
            "href": "http://developer.avid.com/ctms/api/relations/linkrels/{rel}.html",
            "name": "relations",
            "templated": true
         }
      ],
      "self": {
         "href": "https://host/…​"
      },
      "relations:relation-type": [
         {
            "href": "https://host/…​"
         },
         {
            "href": "https://host/…​"
         },
         {
            "href": "https://host/…​"
         }
      ]
   },
   "_embedded": {
      "relations:relation-type": [
         {
            "relationType": "TRAILER_VIDEO.reverse",
            "entityTypes": [
               {
                  "kind": "aa",
                  "type": "asset.TRAILER"
               }
            ],
            "labels": {
               "en": "Trailer"
            },
            "_links": {
               "self": {
                  "href": "https://host/…​"
               },
               "relations:create-relation": {
                  "href": "https://host/…​"
               }
            }
         },
         {
            "relationType": "EPISODE_VERSION_VIDEO.reverse",
            "entityTypes": [
               {
                  "kind": "aa",
                  "type": "asset.EPISODE_VERSION"
               }
            ],
            "labels": {
               "en": "Episode Version"
            },
            "_links": {
               "self": {
                  "href": "https://host/…​"
               },
               "relations:create-relation": {
                  "href": "https://host/…​"
               }
            }
         },
         {
            "relationType": "FEATURE_VERSION_VIDEO.reverse",
            "entityTypes": [
               {
                  "kind": "aa",
                  "type": "asset.FEATURE_VERSION"
               }
            ],
            "labels": {
               "en": "Feature Version"
            },
            "_links": {
               "self": {
                  "href": "https://host/…​"
               },
               "relations:create-relation": {
                  "href": "https://host/…​"
               }
            }
         }
      ]
   }
}