Skip to main content
POST
/
artist
/
bulk
Create Bulk Artists
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/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 Description:
The /artist/bulk endpoint allows the creation of multiple artists simultaneously by providing an array of artist objects.
Method:
POST
Request Payload:
ParameterTypeDescription
artistsarrayAn array of artist objects with their details.
See sample payload and response below

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Request Body

Request Schema

FieldTypeRequiredDescription
artistsarray

Responses

✅ 201 - Created with possible errors

⚠️ 401 - Unauthorized

❌ 500 - Internal Server Error

Tags

Artist

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

application/json
artists
object[]
required

Response

Created with possible errors

message
string
createdArtists
string[]
processedCount
integer
errors
string[]
I