Skip to main content

Export Report

POST 

/reports/:report_id/export

Export the report's saved content to a branded PDF and return a download URL.

Renders the (possibly edited) content.json through the existing docx + LibreOffice pipeline — preserving the report's formatting, layout, and keep-together pagination rules — stores the PDF beside the content in MinIO, records it on Report.file_path, and returns the same presigned response as GET /{report_id}/download (which serves the artefact thereafter). Needs editor access; 404 if the report has no content to export.

Request​

Responses​

Successful Response