Skip to content

Lessons

Lessons: chapter, title, text as sanitized HTML, video and free preview. Filter with filter[course_id].

Module: Courses (courses).

  • GET /api/v1/course_lessons - List with filters, sorting and pagination (scope courses:read)
  • GET /api/v1/course_lessons/{id} - A record by id (scope courses:read)
  • POST /api/v1/course_lessons - Create a record (scope courses:write)
  • PATCH /api/v1/course_lessons/{id} - Modify the submitted fields (scope courses:write)
  • DELETE /api/v1/course_lessons/{id} - Delete or deactivate (scope courses:write)
  • POST /api/v1/course_lessons/{id}/move - Moves one position up or down. (scope courses:write)
  • POST /api/v1/course_lessons/{id}/duplicate - Copies the lesson, right after the original. (scope courses:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • course_id (string, uuid; read)
  • section_id (string; write, required)
  • title (string; write, required)
  • body (string; write)
  • video_id (string; write)
  • is_preview (boolean; write)
  • position (integer; read)
  • created_at (string, date-time; read): Creation date (ISO 8601).
  • updated_at (string, date-time; read): Last modification date (ISO 8601).
  • course_lessons.created
  • course_lessons.updated
  • course_lessons.deleted