DELETE /api/v1/online-lesson/{id}

Permanently delete an online lesson (virtual class, live session, video conference). Only admins and lecturers can delete online lessons.

Path parameters

  • id string Required

    UUID of the online lesson to delete

Responses

  • 200 application/json

    Online lesson 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

    Online lesson not found

DELETE /api/v1/online-lesson/{id}
curl \
 --request DELETE 'http://localhost:3500/api/v1/online-lesson/123e4567-e89b-12d3-a456-426614174000'
Response examples (200)
{
  "message": "Online lesson deleted successfully",
  "success": true,
  "deletedLessonId": "123e4567-e89b-12d3-a456-426614174000"
}
Response examples (400)
{
  "message": "string",
  "error": "string",
  "statusCode": 42.0
}