Skip to content

Returns one lesson in its editable form with its section and course attached.

Endpoint

  • Method: GET

  • Path: /admin/courses/{course_id}/lessons/{lesson_id}

  • Edition: Core

  • Controller: CourseAdminController@getLesson

  • Route source: fluent-community/Modules/Course/Http/course_api.php:56

  • Controller source: fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php

  • Requires the course-creator permission and management access to this course.

Live sample

The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.

GET Get Course Lesson

GET
/admin/courses/{course_id}/lessons/{lesson_id}

Returns one lesson in its editable form with its section and course attached.

Controller: CourseAdminController@getLesson
Route source: fluent-community/Modules/Course/Http/course_api.php:56

Authorizations

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Parameters

Path Parameters

course_id*

Course ID extracted from the URL path.

Type
integer
Required
lesson_id*

Lesson ID extracted from the URL path.

Type
integer
Required

Responses

Successful response

application/json
JSON
{
  
"lesson": {
  
  
"comments_count": 0,
  
  
"content_type": "string",
  
  
"course": {
  
  
  
"cover_photo": "string",
  
  
  
"created_at": "string",
  
  
  
"created_by": "string",
  
  
  
"description": "string",
  
  
  
"id": 0,
  
  
  
"logo": "string",
  
  
  
"parent_id": "string",
  
  
  
"privacy": "string",
  
  
  
"serial": "string",
  
  
  
"settings": {
  
  
  
  
"can_request_join": "string",
  
  
  
  
"course_details": "string",
  
  
  
  
"course_layout": "string",
  
  
  
  
"course_type": "string",
  
  
  
  
"custom_lock_screen": "string",
  
  
  
  
"disable_comments": "string",
  
  
  
  
"emoji": "string",
  
  
  
  
"hide_instructor_view": "string",
  
  
  
  
"hide_members_count": "string",
  
  
  
  
"layout_style": "string",
  
  
  
  
"links": [
  
  
  
  
  
{
  
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
  
}
  
  
  
  
],
  
  
  
  
"members_page_status": "string",
  
  
  
  
"og_image": "string",
  
  
  
  
"public_lesson_view": "string",
  
  
  
  
"restricted_post_only": "string",
  
  
  
  
"sequential_lesson_order": "string",
  
  
  
  
"shape_svg": "string",
  
  
  
  
"show_instructor_students_count": "string",
  
  
  
  
"show_sidebar": "string",
  
  
  
  
"topic_required": "string"
  
  
  
},
  
  
  
"slug": "string",
  
  
  
"status": "string",
  
  
  
"title": "string",
  
  
  
"type": "string",
  
  
  
"updated_at": "string"
  
  
},
  
  
"created_at": "string",
  
  
"expired_at": "string",
  
  
"featured_image": "string",
  
  
"id": 0,
  
  
"is_sticky": "string",
  
  
"message": "string",
  
  
"message_rendered": "string",
  
  
"meta": {
  
  
  
"auto_complete_on_video_end": "string",
  
  
  
"document_ids": [
  
  
  
  
{
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
],
  
  
  
"document_lists": [
  
  
  
  
{
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
],
  
  
  
"enable_comments": "string",
  
  
  
"enable_media": "string",
  
  
  
"enable_passing_score": "string",
  
  
  
"enforce_passing_score": "string",
  
  
  
"free_preview_lesson": "string",
  
  
  
"hide_result": "string",
  
  
  
"media": {
  
  
  
  
"provider": "string"
  
  
  
},
  
  
  
"passing_score": 0,
  
  
  
"require_video_completion": "string",
  
  
  
"video_completion_threshold": 0,
  
  
  
"video_length": 0
  
  
},
  
  
"parent_id": "string",
  
  
"priority": "string",
  
  
"privacy": "string",
  
  
"reactions_count": 0,
  
  
"scheduled_at": "string",
  
  
"slug": "string",
  
  
"space_id": "string",
  
  
"status": "string",
  
  
"title": "string",
  
  
"topic": {
  
  
  
"comments_count": 0,
  
  
  
"content_type": "string",
  
  
  
"created_at": "string",
  
  
  
"expired_at": "string",
  
  
  
"featured_image": "string",
  
  
  
"id": 0,
  
  
  
"is_sticky": "string",
  
  
  
"message": "string",
  
  
  
"message_rendered": "string",
  
  
  
"meta": {
  
  
  
  
"preview_data": "string"
  
  
  
},
  
  
  
"parent_id": "string",
  
  
  
"priority": "string",
  
  
  
"privacy": "string",
  
  
  
"reactions_count": 0,
  
  
  
"scheduled_at": "string",
  
  
  
"slug": "string",
  
  
  
"space_id": "string",
  
  
  
"status": "string",
  
  
  
"title": "string",
  
  
  
"type": "string",
  
  
  
"updated_at": "string",
  
  
  
"user_id": "string"
  
  
},
  
  
"type": "string",
  
  
"updated_at": "string",
  
  
"user_id": "string"
  
}
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation