curl --request POST \
--url https://api.royalti.io/artist/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"artists": [
{
"artistName": "<string>",
"signDate": "2023-12-25",
"label": "<string>",
"externalId": "<string>",
"users": [
"<string>"
],
"split": [
{
"user": "<string>",
"share": 123
}
]
}
]
}
'{
"message": "Bulk artist creation completed",
"createdArtists": [
"Artist One",
"Artist Two"
],
"processedCount": 3,
"errors": [
"Artist Three already exists"
]
}artist/bulk
curl --request POST \
--url https://api.royalti.io/artist/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"artists": [
{
"artistName": "<string>",
"signDate": "2023-12-25",
"label": "<string>",
"externalId": "<string>",
"users": [
"<string>"
],
"split": [
{
"user": "<string>",
"share": 123
}
]
}
]
}
'{
"message": "Bulk artist creation completed",
"createdArtists": [
"Artist One",
"Artist Two"
],
"processedCount": 3,
"errors": [
"Artist Three already exists"
]
}/artist/bulk endpoint allows the creation of multiple artists simultaneously by providing an array of artist objects.
Method:POST
Request Payload:
| Parameter | Type | Description |
|---|---|---|
| artists | array | An array of artist objects with their details. |
See sample payload and response below
const response = await fetch('https://api.royalti.io/artist/bulk', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"artists": [
{
"artistName": "sample-artistName",
"signDate": "2024-01-21",
"label": "sample-label",
"externalId": "sample-externalId",
"users": [
{}
],
"split": [
{
"user": "sample-user",
"share": 1
}
]
}
]
})
});
const data = await response.json();
console.log(data);