POST
/
split
/
default
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/split/default \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"assetId": "d1c5b49e-95fa-4aed-930e-cf314c16a53d",
"type": "Publishing",
"split": [
{
"user": "cf960b5a-37cd-484a-b461-0b191b09bed1",
"share": 60
},
{
"user": "4e39b347-7db0-417d-a5bc-3d8493c9ce19",
"share": 40
}
]
}'
{
"message": "Split created successfully",
"split": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Default Split - Song Title (ISRC12345678)",
"type": "Publishing",
"AssetId": "d1c5b49e-95fa-4aed-930e-cf314c16a53d",
"ProductId": null,
"createdAt": "2023-06-01T12:00:00.000Z",
"updatedAt": "2023-06-01T12:00:00.000Z"
},
"source": "manual"
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

application/json

Response

201
application/json

Created

The response is of type object.