Skip to main content
DELETE
/
split
/
bulk
/
catalog-splits
Bulk delete catalog splits
curl --request DELETE \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/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": []
}
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/split/bulk/catalog-splits', {
  method: 'DELETE',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});

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
ids
string<uuid>[]
required

An array of asset or product IDs (UUIDs)

type
enum<string>
required

Type of entities - either "asset" or "product"

Available options:
asset,
product

Response

Catalog splits deleted successfully

message
string
totalProcessed
integer
totalSplitsDeleted
integer
failedDeletions
object[]