Skip to content

Courses

Online courses: title, slug, description, price, state (draft, published, archived) and access duration. Actions: publish, unpublish, archive. A course with students is not deleted, it is archived.

Module: Courses (courses).

  • GET /api/v1/courses - List with filters, sorting and pagination (scope courses:read)
  • GET /api/v1/courses/{id} - A record by id (scope courses:read)
  • POST /api/v1/courses - Create a record (scope courses:write)
  • PATCH /api/v1/courses/{id} - Modify the submitted fields (scope courses:write)
  • DELETE /api/v1/courses/{id} - Delete or deactivate (scope courses:write)
  • POST /api/v1/courses/{id}/publish - Publishes the course (needs at least one lesson and the videos ready). (scope courses:write)
  • POST /api/v1/courses/{id}/unpublish - Moves the course back to draft. (scope courses:write)
  • POST /api/v1/courses/{id}/archive - Archives the course: students with access keep it. (scope courses:write)
  • POST /api/v1/courses/{id}/issue_certificates - Issues certificates for students who already finished. (scope courses:write)
  • POST /api/v1/courses/{id}/duplicate - Copies the course with chapters and lessons, as a draft without students. (scope courses:write)
  • POST /api/v1/courses/{id}/reorder - Order of chapters and lessons (they can move between chapters). All must be sent, exactly once. (scope courses:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • title (string; write, required)
  • slug (string; write)
  • summary (string; write)
  • description (string; write)
  • image_url (string; write)
  • price (number; write)
  • currency (string; write): Currency (ISO code, e.g. RON).
  • status (string; read)
  • access_days (number; write)
  • 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).
  • certificate_enabled (boolean; write)
  • certificate_template (string; write)
  • certificate_color (string; write)
  • certificate_signer (string; write)
  • instructor_employee_id (string; write)
  • instructor_name (string; write)
  • instructor_title (string; write)
  • instructor_bio (string; write)
  • instructor_photo_url (string; write)
  • qa_enabled (boolean; write)
  • reviews_enabled (boolean; write)
  • courses.created
  • courses.updated
  • courses.deleted