Overrides the pass or fail grade recorded against one quiz attempt.
status must be passed or failed; nothing else is accepted, and the score itself is left unchanged.
Endpoint
Method:
POSTPath:
/admin/courses/{course_id}/quiz-results/{quiz_id}Edition: PRO
Controller:
FluentCommunityPro\App\Modules\Quiz\Http\Controllers\QuizController@updateQuizResultRoute source:
fluent-community-pro/app/Modules/Quiz/Http/quiz_api.php:14Requires a course admin for this course, or a WordPress user with
manage_options.Requires FluentCommunity Pro with the Quiz module.
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 Quiz Result
Overrides the pass or fail grade recorded against one quiz attempt.
Controller: FluentCommunityPro\App\Modules\Quiz\Http\Controllers\QuizController@updateQuizResult
Route source: fluent-community-pro/app/Modules/Quiz/Http/quiz_api.php:14
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Request Body
Responses
Successful response