A collection describes one of more assets. A asset can belong to one or more collections. This call counts all the assets in a collection. If the collection is master-slaved to your client application, then only the master-slaved assets to your client application are counted.
/collection/$coll_id/asset/count [GET]
This call needs EGA authentication.
| Parameter (Type) | Description | Required | Default value | Max. length |
|---|---|---|---|---|
| coll_id (ALPHA_NUM) | Unique collection id | Required | - | |
| hide_empty_assets (BOOL) | Do not include assets that do not have mediafiles. | Optional | FALSE | - |
| 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 | - | |
| user_id (ALPHA_NUM) | The User ID requesting the details, used for unappropriate checks. | Optional | - |
/collection/A2VIXJhHiplJWliYVTVeD8Ee/asset/count?user_id=foo
<items>
<item id="1">
<numofvideos>3</numofvideos>
</item>
</items>