Saves the site-wide review defaults for new courses.
Everything is sanitised rather than validated, so an unknown value falls back to its default instead of failing: the two switches accept only the exact strings yes and no, eligibility accepts only enrolled or progress, and the minimum progress is capped at 100 and falls back to 25.
Endpoint
Method:
POSTPath:
/admin/course-reviews/settingsEdition: PRO
Controller:
FluentCommunityPro\App\Modules\CourseReview\Http\Controllers\CourseReviewAdminController@saveSettingsRoute source:
fluent-community-pro/app/Modules/CourseReview/Http/course_review_api.php:22These defaults apply only to courses created afterwards. No existing course changes, and a course that already carries its own configuration is never touched.
Duplicating a course does not copy its review configuration, so the duplicate picks up whatever the defaults say at that moment.
A missing or malformed body is not an error: it stores the sanitised defaults.
Inferred sample
No recorded sample exists for this endpoint yet, so the payload below is inferred from the controller and model definitions. Field names and types are accurate; values are placeholders.
POST Save Review Settings
Saves the site-wide review defaults for new courses.
Controller: FluentCommunityPro\App\Modules\CourseReview\Http\Controllers\CourseReviewAdminController@saveSettings
Route source: fluent-community-pro/app/Modules/CourseReview/Http/course_review_api.php:22
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Responses
Successful response