curl --request POST \
--url https://api.royalti.io/artist/bulksplit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"updates": [
{
"artistId": "<string>",
"split": [
{
"user": "<string>",
"share": 123
}
]
}
]
}
'{
"message": "Bulk split update completed",
"updatedCount": 5
}artist/bulksplit
curl --request POST \
--url https://api.royalti.io/artist/bulksplit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"updates": [
{
"artistId": "<string>",
"split": [
{
"user": "<string>",
"share": 123
}
]
}
]
}
'{
"message": "Bulk split update completed",
"updatedCount": 5
}/artist/bulksplit endpoint allows updating splits for multiple artists simultaneously.
Method:PATCH
Request Payload:
| Parameter | Type | Description |
|---|---|---|
| updates | array | An array of artist split update objects. |
const response = await fetch('https://api.royalti.io/artist/bulksplit', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"updates": [
{
"artistId": "sample-artistId",
"split": [
{
"user": "sample-user",
"share": 1
}
]
}
]
})
});
const data = await response.json();
console.log(data);