curl --request POST \
--url https://api.royalti.io/labels/{labelId}/artists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"artistId": "b369dabe-b4e0-4787-91a5-b561c98601e5",
"contractType": "recording",
"contractStartDate": "2024-01-01",
"territories": [
"US",
"GB"
],
"exclusivity": "non-exclusive"
}
'{
"status": "<string>",
"data": {
"LabelId": "<string>",
"ArtistId": "<string>",
"contractType": "<string>",
"territories": [
"<string>"
]
}
}Add Artist to Label
curl --request POST \
--url https://api.royalti.io/labels/{labelId}/artists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"artistId": "b369dabe-b4e0-4787-91a5-b561c98601e5",
"contractType": "recording",
"contractStartDate": "2024-01-01",
"territories": [
"US",
"GB"
],
"exclusivity": "non-exclusive"
}
'{
"status": "<string>",
"data": {
"LabelId": "<string>",
"ArtistId": "<string>",
"contractType": "<string>",
"territories": [
"<string>"
]
}
}const response = await fetch('https://api.royalti.io/labels/example-id/artists', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"ref": "#/components/schemas/LabelArtistAssociation"
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"