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/default', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "split": [
      {
        "user": "sample-user",
        "share": 1
      }
    ],
    "assetId": "sample-assetId",
    "productId": "sample-productId",
    "type": "sample-type"
  })
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
UUID of the asset to create splits for (required if productId not provided)
Array of split share objects
UUID of the product to create splits for (required if assetId not provided)
Type of split (defaults to 'default' if not provided)
Example:"Split created successfully"
 Indicates whether the split was created from manual input or artist defaults
Available options: 
manual, 
artist_default