Skip to main content
POST
/
artist
/
bulk
/
delete
Delete Bulk Artists
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/artist/bulk/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}'
{
  "message": "Done.",
  "processedCount": 3,
  "failedDeletions": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "error": "Artist delete failed!"
    }
  ]
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/artist/bulk/delete', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "ids": [
      {}
    ]
  })
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

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

Body

application/json
ids
string<uuid>[]
required

Array of artist IDs to delete

Minimum length: 1

Response

Success

message
string

Status message

processedCount
integer

Number of artists successfully deleted

failedDeletions
object[]