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/example-id', {
  method: 'PUT',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "asset": "sample-asset",
    "product": "sample-product",
    "type": "sample-type",
    "startDate": "2024-01-21",
    "endDate": "2024-01-21",
    "name": "sample-name",
    "contract": "sample-contract",
    "ContractId": "sample-ContractId",
    "memo": "sample-memo",
    "split": [
      {
        "ref": "#/components/schemas/SplitShare"
      }
    ],
    "conditions": [
      {
        "mode": "sample-mode",
        "memo": "sample-memo",
        "territories": [
          {}
        ],
        "dsps": [
          {}
        ],
        "usageTypes": [
          {}
        ],
        "customDimension": "sample-customDimension",
        "customValues": [
          {}
        ]
      }
    ]
  })
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
An array of objects containing user shares
The UUID of the asset related to the revenue
The UUID of the product related to the revenue
The type of revenue (e.g., Publishing, YouTube, Live)
The start date of the split period (inclusive)
The end date of the split period (exclusive)
The name or description of the revenue split
Conditions for split matching