curl --request PUT \
--url https://api.royalti.io/artist/{id}/merge \
--header 'Authorization: Bearer <token>'{
"message": "Artists merged successfully",
"assetsUpdatedCount": 5,
"productsUpdatedCount": 3,
"artistsDeletedCount": 2,
"totalChanges": 10
}artist//merge
curl --request PUT \
--url https://api.royalti.io/artist/{id}/merge \
--header 'Authorization: Bearer <token>'{
"message": "Artists merged successfully",
"assetsUpdatedCount": 5,
"productsUpdatedCount": 3,
"artistsDeletedCount": 2,
"totalChanges": 10
}/artist/{id}/merge endpoint merges one or more artists into a primary artist.
All assets and products from the secondary artists will be associated with the primary artist,
and the secondary artists will be deleted after the merge.
Method:PUT
Path Parameter:
| Parameter | Type | Description |
|---|---|---|
| id | string | The ID of the primary artist to merge into. |
| Parameter | Required | Type | Description |
|---|---|---|---|
| ids | Yes | string | Comma-separated list of artist IDs to merge into the primary artist |
const response = await fetch('https://api.royalti.io/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);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Primary Artist ID to merge into
Comma-separated list of secondary artist IDs to merge
Success
Number of assets reassigned to the primary artist
Number of products reassigned to the primary artist
Number of secondary artists deleted after merge
Total number of changes made (sum of all updates and deletions)