Issues certificates for past completions of a course, 25 completions at a time.
Walks completion records in order from the cursor the caller passes back each time, skipping anybody who already holds a certificate for the course. Each certificate is dated from the real completion, not from today. The response carries the counts, the next cursor and whether the walk is done.
Endpoint
Method:
POSTPath:
/admin/courses/{course_id}/certificate-backfillEdition: PRO
Controller:
CertificateAdminController@backfillRoute source:
fluent-community-pro/app/Modules/Certificates/Http/certificates_api.php:44The caller drives the loop: post the returned cursor to continue. Re-posting cursor 0 simply re-walks and skips everything.
The batch size is fixed at 25 and cannot be set from the request, and the work runs inside the request rather than as a background job.
Backfilled certificates never send the notification email.
Because expiry counts from the completion date, a backfilled certificate can be born already expired.
Per-row failures are counted rather than fatal, and only the first five appear in
errors— sodonecan be true while some remain pending.Refused with 422 until the course has certificates switched on and saved.
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 Post Backfill
Issues certificates for past completions of a course, 25 completions at a time.
Controller: CertificateAdminController@backfill
Route source: fluent-community-pro/app/Modules/Certificates/Http/certificates_api.php:44
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Responses
Successful response