Count the number of collections where given asset is related to.

22Aug2011

Returns the number of collections where the given asset is related to. This number is stored in the header->item_count_total. The array is empty in this call.

Request URL

/asset/$asset_id/collections/count [GET]

Request Authorization

This call needs EGA authentication.

Request Parameters

Parameter (Type)DescriptionRequiredDefault valueMax. length
asset_id (ALPHA_NUM)The asset ID.Required-
mediamosa_version (MEDIAMOSA_VERSION)Provide the version to get the REST call returned in the format of the specified MediaMosa version. Keep empty or skip to retrieve in current (latest) version. Provide '2' to retrieve the REST call in 2.x format. Or be more specific by providing up to 3 digits; '2.3.0'. This setting will override any setting used by client application or the default setting in MediaMosa.Optional-

Example Request

/asset/1kr9rRFs6ljcBNNtpM8T5AI3/collection/count

Example Response

<header>
  <item_count>0</item_count>
  <item_count_total>1</item_count_total>
  <item_offset>0</item_offset>
  ...
</header>