curl --request PUT \
--url https://api.royalti.io/artist/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"artistName": "<string>",
"signDate": "2023-12-25",
"label": "<string>",
"publisher": "<string>",
"copyright": "<string>",
"externalId": "<string>",
"links": {},
"contributors": {},
"split": [
{
"user": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"share": 123
}
],
"users": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'{
"message": "Artist updated successfully"
}artist/
curl --request PUT \
--url https://api.royalti.io/artist/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"artistName": "<string>",
"signDate": "2023-12-25",
"label": "<string>",
"publisher": "<string>",
"copyright": "<string>",
"externalId": "<string>",
"links": {},
"contributors": {},
"split": [
{
"user": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"share": 123
}
],
"users": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'{
"message": "Artist updated successfully"
}/artist/{id} endpoint allows updating the details of a specific artist identified by their unique ID.
Method:PUT
Path Parameter:
| Parameter | Type | Description |
|---|---|---|
| id | string | The unique identifier of the artist. |
| Parameter | Type | Description |
|---|---|---|
| artistName | string | The updated name of the artist. |
| signDate | date | The updated sign date. |
| label | string | The updated label. |
| publisher | string | The updated publisher. |
| copyright | string | The updated copyright information. |
| externalId | string | The updated external ID. |
| links | object | Updated links (JSON string when using multipart/form-data). |
| contributors | object | Updated contributors. |
| split | array/object | Updated split information (supports both array and object format). |
| file | file | Artist profile image (when using multipart/form-data). |
| users | array | Array of user IDs to associate with artist. |
application/json and multipart/form-data.
Use multipart/form-data when uploading an artist image file.
const response = await fetch('https://api.royalti.io/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",
"publisher": "sample-publisher",
"copyright": "sample-copyright",
"externalId": "sample-externalId",
"links": {},
"contributors": {},
"users": [
{}
]
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Artist ID