Skip to content

Lesson attachments

Gallery documents linked to lessons (media_id). Filter with filter[lesson_id]. POST links a document, DELETE removes it from the lesson (it stays in the Gallery).

Module: Courses (courses).

  • GET /api/v1/course_lesson_files - List with filters, sorting and pagination (scope courses:read)
  • GET /api/v1/course_lesson_files/{id} - A record by id (scope courses:read)
  • POST /api/v1/course_lesson_files - Create a record (scope courses:write)
  • DELETE /api/v1/course_lesson_files/{id} - Delete or deactivate (scope courses:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • lesson_id (string; write, required)
  • media_id (string; write, required)
  • created_by (string; read)
  • created_at (string, date-time; read): Creation date (ISO 8601).
  • updated_at (string, date-time; read): Last modification date (ISO 8601).
  • course_lesson_files.created
  • course_lesson_files.updated
  • course_lesson_files.deleted