artist//splits
Description:
Creates new default splits for an artist. The total share of all splits must equal exactly 100%.
Method:
POST
Path Parameter:
Parameter | Type | Description |
---|---|---|
id | string | The unique identifier of the artist. |
Request Body:
{
"splits": [
{
"TenantUserId": "550e8400-e29b-41d4-a716-446655440000",
"share": 50.0,
"type": "default"
},
{
"TenantUserId": "550e8400-e29b-41d4-a716-446655440001",
"share": 50.0,
"type": "default"
}
]
}
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/artist/{id}/splits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"splits": [
{
"TenantUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"share": 50,
"type": "<string>"
}
]
}'
{
"message": "Splits created successfully",
"result": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"artistId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "master",
"splits": [
{
"recipientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recipientType": "user",
"percentage": 50,
"role": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Artist ID
Splits created successfully
The response is of type object
.
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/artist/{id}/splits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"splits": [
{
"TenantUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"share": 50,
"type": "<string>"
}
]
}'
{
"message": "Splits created successfully",
"result": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"artistId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "master",
"splits": [
{
"recipientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recipientType": "user",
"percentage": 50,
"role": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}