Media collection
This relation targets a list of medias id related to the current resource. For a basket or a selection resource.
4.54.0+
Add medias
Example for a basket :
POST /api/dam/baskets/{basketId}/medias-collection
{
"ids": [
64,
66,
67,
1366,
1367,
1368,
1369,
1370,
1371,
1372
]
}
This request add multiples medias in a basket.
It returns list of medias not added in basket with the reason. The HTTP code is 207 in this case.
There is a limit to 500 for the number of medias in a basket. For a selection max ids is 10000.
Remove medias
Example for a basket:
DELETE /api/dam/baskets/{basketId}/medias-collection
{
"ids": [
64,
66,
67,
1366,
1367,
1368,
1369,
1370,
1371,
1372
]
}
This request delete multiples medias in a basket.