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

Update details of an online lesson such as schedule, meeting link, title, or duration. Only admins and lecturers can update online lessons.

Path parameters

  • id string Required

    UUID of the online lesson to update

application/json

Body Required

Online lesson data to update

  • title string
  • description string
  • scheduledAt string(date-time)
  • duration number

    Duration in minutes

  • meetingPassword string

Responses

  • 200 application/json

    Online lesson updated successfully

  • 400

    Invalid lesson data provided

  • 403

    Forbidden - Admin or Lecturer role required

  • 404

    Online lesson not found

PATCH /api/v1/online-lesson/{id}
curl \
 --request PATCH 'https://api.echoplain.social/api/v1/online-lesson/123e4567-e89b-12d3-a456-426614174000' \
 --header "Content-Type: application/json" \
 --data '{"title":"Updated: Live Session on Algorithms","description":"Deep dive into sorting and searching algorithms","scheduledAt":"2025-11-26T15:00:00Z","duration":120,"meetingLink":"https://zoom.us/j/987654321","meetingPassword":"algo2025","recordingLink":"https://zoom.us/rec/share/xyz9876"}'
Request examples
{
  "title": "Updated: Live Session on Algorithms",
  "description": "Deep dive into sorting and searching algorithms",
  "scheduledAt": "2025-11-26T15:00:00Z",
  "duration": 120,
  "meetingLink": "https://zoom.us/j/987654321",
  "meetingPassword": "algo2025",
  "recordingLink": "https://zoom.us/rec/share/xyz9876"
}
Response examples (200)
{
  "lesson": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "title": "Updated: Live Session on Algorithms",
    "scheduledAt": "2025-11-26T15:00:00Z"
  },
  "message": "Online lesson updated successfully",
  "success": true
}