DELETE /api/v1/assignment/{id}/content/{contentId}

Remove a specific content block from an assignment. Only admins and lecturers can delete content.

Path parameters

  • id string Required

    UUID of the assignment

  • contentId string Required

    UUID of the content block to delete

Responses

  • 200 application/json

    Content deleted successfully

  • 400 application/json

    Default bad request error 400 response

    Hide response attributes Show response attributes object
    • message string Required

      Response message

    • error string Required
    • statusCode number Required
  • 403

    Forbidden - Admin or Lecturer role required

  • 404

    Assignment or content not found

DELETE /api/v1/assignment/{id}/content/{contentId}
curl \
 --request DELETE 'http://localhost:3500/api/v1/assignment/assignment-123/content/content-1'
Response examples (200)
{
  "message": "Content deleted successfully",
  "success": true
}
Response examples (400)
{
  "message": "string",
  "error": "string",
  "statusCode": 42.0
}