Records that the current user has watched enough of a gated lesson video to be allowed to mark the lesson complete.
Send watched_percent; it must reach the lesson threshold or the call is rejected with the required figure. A lesson that is not video-gated returns is_gated: false and records nothing.
Endpoint
Method:
POSTPath:
/courses/{course_id}/lessons/{lesson_id}/video-watchedEdition: Core
Controller:
CourseController@markLessonVideoWatchedRoute source:
fluent-community/Modules/Course/Http/course_api.php:16Controller source:
fluent-community/Modules/Course/Http/Controllers/CourseController.phpRequires a signed-in user who is enrolled in the 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.
POST Post Mark Lesson Video Watched
Records that the current user has watched enough of a gated lesson video to be allowed to mark the lesson complete.
Controller: CourseController@markLessonVideoWatched
Route source: fluent-community/Modules/Course/Http/course_api.php:16
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Course ID extracted from the URL path.
Lesson ID extracted from the URL path.
Request Body
Responses
Successful response