Skip to main content
PUT
/
artist
/
{id}
Update Artist
curl --request PUT \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/artist/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "artistName": "<string>",
  "signDate": "2023-12-25",
  "label": "<string>",
  "externalId": "<string>",
  "links": {},
  "split": [
    {
      "user": "<string>",
      "share": 123
    }
  ]
}'
{
  "message": "Artist updated successfully"
}
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/example-id', {
  method: 'PUT',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "artistName": "sample-artistName",
    "signDate": "2024-01-21",
    "label": "sample-label",
    "externalId": "sample-externalId",
    "links": {},
    "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}"

Path Parameters

id
string
required

Artist ID

Body

application/json
artistName
string
signDate
string<date>
label
string
externalId
string
split
object[]

Response

Success

message
string
artist
object