Delete the relations between collection and assets.

22Aug2011

Delete all given assets from a collection. This call only removes the links, not the objects itself. Returns an item list of relations deleted.

Request URL

/collection/$coll_id/asset_relation/delete [POST]

Request Authorization

This call needs EGA authentication.

Request Parameters

Parameter (Type)DescriptionRequiredDefault valueMax. length
asset_id[] (ALPHA_NUM)The asset ID's to be removed from the collection. This parameter accepts an array of assets.Required-
coll_id (ALPHA_NUM)The collection ID.Required-
user_id (ALPHA_NUM)The user ID, must be owner of the collection.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

collection/b1Tb9eoIgOeSLZ9cGO04rPej/asset_relation/delete [POST] asset_id[]=X2OJSIuWKPUZUsdSNlsE8Tcx&asset_id[]=x1AjaVW8gVjZjsKmQRWsF9uM&user_id=foo

Example Response

<items>
  <item id="1">
    <asset_id>X2OJSIuWKPUZUsdSNlsE8Tcx</asset_id>
    <coll_id>b1Tb9eoIgOeSLZ9cGO04rPej</coll_id>
  </item>
  <item id="2">
    <asset_id>x1AjaVW8gVjZjsKmQRWsF9uM</asset_id>
    <coll_id>b1Tb9eoIgOeSLZ9cGO04rPej</coll_id>
  </item>
</items>