Skip to main content
PUT
/
product
/
bulk
/
defaultsplit
Set Default Split for Bulk Products
curl --request PUT \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/product/bulk/defaultsplit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "products": [
    "product-id-1",
    "product-id-2"
  ]
}'
{
  "message": "Bulk product default splits processed.",
  "processed": 5,
  "errors": [
    "product-id-3 - Artist default split not set!"
  ]
}
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/product/bulk/defaultsplit', {
  method: 'PUT',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "products": [
      {}
    ]
  })
});

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

Array of product IDs to update with default splits

Response

Successfully processed bulk product default splits

message
string
Example:

"Bulk product default splits processed."

processed
integer

Number of products successfully processed

errors
string[]

Array of error messages for any products that failed processing