Skip to main content
POST
Bulk Delete Labels
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

Each id is checked and deleted independently, in its own transaction: a label that still has associated artists, products or child labels is skipped (deleting it would orphan those rows) and reported in failedDeletions with the reason, while the rest of the batch proceeds. Ids belonging to another workspace are reported as not found. Mirrors POST /expense/bulk/delete and POST /revenue/bulk/delete. Authorization:
  • Required role: owner only

Code Examples

Authorizations

Authorization
string
header
required

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

Body

application/json
ids
string<uuid>[]
required

Label IDs to delete (max 500)

Maximum array length: 500

Response

Bulk delete completed (may include skipped labels)

status
string
Example:

"success"

message
string
Example:

"3 label(s) deleted, 1 skipped"

processedCount
integer
Example:

3

failedDeletions
object[]