Skip to main content
POST
/
asset
/
bulk
/
deletesplit
Bulk delete splits for multiple assets
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/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>"
    }
  ]
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/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);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

application/json
assetIds
string<uuid>[]
required
Minimum length: 1

Array of asset IDs for which to delete splits

Example:
[
"550e8400-e29b-41d4-a716-446655440000",
"6ba7b810-9dad-11d1-80b4-00c04fd430c8"
]

Response

Successfully processed all or some asset splits

message
string
Example:

"Asset splits deletion completed."

totalAssetsProcessed
integer
Example:

5

totalSplitsDeleted
integer
Example:

10

failedDeletions
object[]