artist/bulk/delete
Description:
The /artist/bulk/delete
endpoint allows deletion of multiple artists simultaneously.
Method:
POST
Request Payload:
Parameter | Type | Description |
---|---|---|
artistIds | array | An array of artist IDs to delete. |
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!"
}
]
}
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Success
The response is of type object
.
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!"
}
]
}