Add assets to a collection or remove them from it. The response contains the outcome for each item, keyed by the supplied batch item ID. An asset already in the requested state counts as a success.
Security
bearerToken
- Productionhttps://api-v2.dash.app/collection-asset-membership-batches
curl -i -X POST \
https://api-v2.dash.app/collection-asset-membership-batches \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"collectionId": "string",
"operation": "ADD",
"items": [
{
"batchItemId": "string",
"assetId": "string"
}
]
}'Response
{ "successes": { "property1": "string", "property2": "string" }, "failures": { "property1": "MEMBERSHIP_CHANGE_FAILED", "property2": "MEMBERSHIP_CHANGE_FAILED" } }