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"
    }
  ]
}

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

Response

200
application/json

Splits updated successfully

The response is of type object.