Skip to main content
PUT
/
artist
/
{id}
/
splits
/
{type}
Update default splits by type for an artist
curl --request PUT \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/artist/{id}/splits/{type} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "splits": [
    {
      "TenantUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "share": 50
    }
  ]
}'
{
  "message": "Splits updated 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"
    }
  ]
}
artist//splits/ Description:
Updates default splits for a specific artist and split type. The total share of all splits must equal exactly 100%.
Method:
PUT
Path Parameters:
ParameterTypeDescription
idstringThe unique identifier of the artist.
typestringThe type of splits to update (e.g., ‘default’, ‘mechanical’, etc.)
Request Body:
{
  "splits": [
    {
      "TenantUserId": "550e8400-e29b-41d4-a716-446655440000",
      "share": 60.0
    },
    {
      "TenantUserId": "550e8400-e29b-41d4-a716-446655440001",
      "share": 40.0
    }
  ]
}

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Path Parameters

ParameterTypeInRequiredDescription
idstringpathArtist ID
typestringpathType of splits to update

Request Body

Request Schema

FieldTypeRequiredDescription
splitsarray

Responses

✅ 200 - Splits updated successfully

⚠️ 400 - undefined

⚠️ 401 - undefined

⚠️ 404 - undefined

❌ 500 - undefined

Tags

Artist

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Artist ID

type
string
required

Type of splits to update

Body

application/json
splits
object[]
Minimum length: 1

Response

Splits updated successfully

message
string
Example:

"Splits updated successfully"

result
object[]
I