Skip to main content
POST
/
artist
/
bulksplit
Update Bulk Artist Splits
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/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
}
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/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);

Authorizations

Authorization
string
header
required

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

Body

application/json
updates
object[]
required

Response

Success

message
string
updatedCount
integer