Skip to main content
DELETE
Delete a work
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

DELETE /work/works/ Description: Deletes a work. Blocked with 400 if the work still has any CWRWorkWriter rows — clear writers (PUT .../writers with an empty array) before deleting. Authorization:
  • Required role: admin or higher
Method: DELETE

Code Examples

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

CWRWork id (the /work/works/:id route family uses id, not workId)

Response

Work deleted

message
string
Example:

"Work deleted successfully"