Delete List

Endpoint

URL: /:projectId/lists/:listId

Method: DELETE

Authentication Required: Yes


Description

Deletes a sub-list owned by the authenticated user. Root lists cannot be deleted.


Request

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token for authentication.

Path Parameters

ParameterTypeRequiredDescription
listIdstringYesThe ID of the list to delete.

Example Request

DELETE /proj1234/lists/list_abc
Authorization: Bearer <ACCESS_TOKEN>

Response

Success Response (204 No Content)

(No response body)

Error Responses

Missing List ID (400 Bad Request)

{
  "error": "Missing list ID",
  "code": "list/invalid-id"
}

List Not Found (404 Not Found)

{
  "error": "List not found",
  "code": "list/not-found"
}

Root List Deletion Forbidden (403 Forbidden)

{
  "error": "Root lists cannot be deleted",
  "code": "list/cannot-delete-root"
}

Server Error (500 Internal Server Error)

{
  "error": "Server error",
  "code": "list/server-error",
  "details": "<Error message>"
}

Notes

  • Only sub-lists (lists with a non-null parentId) can be deleted.
  • Returns 204 No Content on successful deletion.
  • Root lists are protected and cannot be deleted.