Attach Report

POST /api/factory/attach-report

Sets the work record's report: the markdown summary of what the station did this run. Calling it again replaces the report.

Request Body

FieldTypeRequiredDescription
work_record_idstringYesFrom the poll response
contentstringYesMarkdown

attachReport(work_record_id, content) in @assemblyline/lib-factory calls this.

Response

{ "success": true }

Errors

StatusCodeMeaning
400BAD_REQUESTInvalid JSON or a missing field
403FORBIDDENThe work record belongs to another org
404NOT_FOUNDNo such work record