curl --request POST \
--url https://api.royalti.io/asset/bulk/deletesplit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assetIds": [
"550e8400-e29b-41d4-a716-446655440000",
"6ba7b810-9dad-11d1-80b4-00c04fd430c8"
]
}
'{
"message": "Asset splits deletion completed.",
"totalAssetsProcessed": 5,
"totalSplitsDeleted": 10,
"failedDeletions": [
{
"assetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"splitsDeleted": 123,
"error": "<string>"
}
]
}Deletes all splits associated with the specified assets where ProductId is null (asset-level splits).
curl --request POST \
--url https://api.royalti.io/asset/bulk/deletesplit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assetIds": [
"550e8400-e29b-41d4-a716-446655440000",
"6ba7b810-9dad-11d1-80b4-00c04fd430c8"
]
}
'{
"message": "Asset splits deletion completed.",
"totalAssetsProcessed": 5,
"totalSplitsDeleted": 10,
"failedDeletions": [
{
"assetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"splitsDeleted": 123,
"error": "<string>"
}
]
}const response = await fetch('https://api.royalti.io/asset/bulk/deletesplit', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"assetIds": [
"550e8400-e29b-41d4-a716-446655440000",
"6ba7b810-9dad-11d1-80b4-00c04fd430c8"
]
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
1Array of asset IDs for which to delete splits
[
"550e8400-e29b-41d4-a716-446655440000",
"6ba7b810-9dad-11d1-80b4-00c04fd430c8"
]