Count collections

22Aug2011

Count the number of collections that match a group or an owner. If no parameter is given, the total number of collections is returned. The item_count_total is part of the header response output.

Request URL

/collection/count [GET]

Request Authorization

This call needs EGA authentication.

Request Parameters

Parameter (Type)DescriptionRequiredDefault valueMax. length
group_id (ALPHA_NUM)Group idOptional-
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-
owner_id (ALPHA_NUM)Optional-

Example Request

/collection/count?owner_id=foo [GET]

Example Response

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