curl --request DELETE \
--url https://api.royalti.io/split/bulk/catalog-splits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"d1c5b49e-95fa-4aed-930e-cf314c16a53d",
"e2d6c5af-96gb-5bed-a41f-df425d27b64e",
"f3e7d6bg-a7hc-6cfe-b52g-eg536e38c75f"
],
"type": "asset"
}
'{
"message": "Asset splits deletion completed.",
"totalProcessed": 3,
"totalSplitsDeleted": 7,
"failedDeletions": []
}Bulk Delete Catalog Splits
curl --request DELETE \
--url https://api.royalti.io/split/bulk/catalog-splits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"d1c5b49e-95fa-4aed-930e-cf314c16a53d",
"e2d6c5af-96gb-5bed-a41f-df425d27b64e",
"f3e7d6bg-a7hc-6cfe-b52g-eg536e38c75f"
],
"type": "asset"
}
'{
"message": "Asset splits deletion completed.",
"totalProcessed": 3,
"totalSplitsDeleted": 7,
"failedDeletions": []
}/split/bulk/catalog-splits) allows users to delete all splits associated with specific assets or products in bulk.
Method:DELETE
Request Payload:
The request payload should be a JSON object with an array of asset or product IDs and the type specifying whether they are assets or products.
| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | string[] | Yes | An array of asset or product IDs (UUIDs) |
| type | string | Yes | Either “asset” or “product” to specify the type of entities |
This request deletes all splits associated with the specified assets or products. For assets, only asset-level splits are deleted (where ProductId is null). For products, all splits associated with the product are deleted.
const response = await fetch('https://api.royalti.io/split/bulk/catalog-splits', {
method: 'DELETE',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"