Applies a new display order to a course outline by writing the submitted priority for each section.
Send indexes as a map of section id to priority. Ids that do not belong to this course are ignored, so a malformed payload silently reorders nothing.
Endpoint
Method:
PATCHPath:
/admin/courses/{course_id}/sections/indexesEdition: Core
Controller:
CourseAdminController@resetSectionIndexesRoute source:
fluent-community/Modules/Course/Http/course_api.php:45Controller 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 Sections
Applies a new display order to a course outline by writing the submitted priority for each section.
Controller: CourseAdminController@resetSectionIndexes
Route source: fluent-community/Modules/Course/Http/course_api.php:45
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Course ID extracted from the URL path.
Request Body
Responses
Successful response