Replaces the sidebar link list shown on a course with the submitted set.
Each link is sanitised individually. The submitted array replaces the stored one wholesale.
Endpoint
Method:
POSTPath:
/admin/courses/{course_id}/linksEdition: Core
Controller:
CourseAdminController@updateLinksRoute source:
fluent-community/Modules/Course/Http/course_api.php:37Controller source:
fluent-community/Modules/Course/Http/Controllers/CourseAdminController.phpRequires a course admin for this course, or a WordPress user with
manage_options.
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 Update Course Links
Replaces the sidebar link list shown on a course with the submitted set.
Controller: CourseAdminController@updateLinks
Route source: fluent-community/Modules/Course/Http/course_api.php:37
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