The
/split/default
endpoint creates splits using either provided shares or an artist’s default splits. It automatically associates the split with an asset or product and validates that the total share equals 100%.
Method:POST
Request Body:
The request body should be a JSON object with the following properties. Either assetId
or productId
is required.
Parameter | Type | Required | Description |
---|---|---|---|
split | array | No | Array of split share objects (if not provided, uses artist’s default splits) |
assetId | string | Conditional | UUID of the asset to create splits for (required if productId not provided) |
productId | string | Conditional | UUID of the product to create splits for (required if assetId not provided) |
type | string | No | Type of split (defaults to ‘default’ if not provided) |
Parameter | Type | Required | Description |
---|---|---|---|
user | string | Yes | UUID of the user |
share | number | Yes | Percentage share (must total 100% across all shares) |
Authentication
This endpoint requires authentication. Include your bearer token in the Authorization header.Request Body
Request Schema
Field | Type | Required | Description |
---|---|---|---|
split | array | ❌ | Array of split share objects |
assetId | string | ❌ | UUID of the asset to create splits for (required if productId not provided) |
productId | string | ❌ | UUID of the product to create splits for (required if assetId not provided) |
type | string | ❌ | Type of split (defaults to ‘default’ if not provided) |
Responses
✅ 201 - Created
⚠️ 400 - Bad Request
Missing required field
Invalid split total
No artist found
No default splits
Split exists
⚠️ 401 - Unauthorized
❌ 500 - Internal Server Error
Tags
Splits
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Body
application/json
- Option 1
- Option 2
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)