Regenerate Report
POST/reports/:report_id/regenerate
Re-run generation for a legacy (pdf_only) report to produce editable content.
Every report generated before the render-agnostic content layer has a delivered PDF
(file_path) but no editable content (content_path IS NULL) — it reads as
pdf_only and cannot be viewed or edited on-platform. This enqueues a fresh
generation run against the same report id from its stored answers and version
snapshot; the status flips to generating and, once the worker finishes, to
completed with the full editable content. The already-delivered PDF is left
untouched. Because generation's narration is non-deterministic, the regenerated
content may differ from the PDF already delivered — the UI warns before calling this.
A write, so it needs editor access. Returns the updated report (status
generating). 409 if the report already has editable content or a run is already
in flight; 404/409/422 if the source run is gone, not complete, or the wrong
pipeline (surfaced so the report simply stays pdf_only).
Request
Responses
- 200
- 404
- 409
- 422
Successful Response
Not Found
Conflict
Unprocessable Entity