Applies a new display order to the lessons inside one section.
Send indexes as a map of lesson id to priority. Only lessons that belong to both this course and this section are updated.
Endpoint
Method:
PATCHPath:
/admin/courses/{course_id}/sections/{section_id}/indexesEdition: Core
Controller:
CourseAdminController@resetLessonIndexesRoute source:
fluent-community/Modules/Course/Http/course_api.php:50Controller source:
fluent-community/Modules/Course/Http/Controllers/CourseAdminController.phpRequires 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.
PATCH Reindex Course Lessons
Applies a new display order to the lessons inside one section.
Controller: CourseAdminController@resetLessonIndexes
Route source: fluent-community/Modules/Course/Http/course_api.php:50
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Course ID extracted from the URL path.
Section ID extracted from the URL path.
Request Body
Responses
Successful response