Skip to main content
PUT
/
artist
/
{id}
/
merge
Merge Artists
curl --request PUT \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/artist/{id}/merge \
  --header 'Authorization: Bearer <token>'
{
  "message": "Artists merged successfully",
  "assetsUpdatedCount": 5,
  "productsUpdatedCount": 3,
  "artistsDeletedCount": 2,
  "totalChanges": 10
}
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/merge', {
  method: 'PUT',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({})
});

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

Primary Artist ID to merge into

Query Parameters

ids
string
required

Comma-separated list of secondary artist IDs to merge

Response

Success

message
string
assetsUpdatedCount
integer

Number of assets reassigned to the primary artist

productsUpdatedCount
integer

Number of products reassigned to the primary artist

artistsDeletedCount
integer

Number of secondary artists deleted after merge

totalChanges
integer

Total number of changes made (sum of all updates and deletions)