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
| Field | Type | Required | Description |
|---|---|---|---|
work_record_id | string | Yes | From the poll response |
content | string | Yes | Markdown |
attachReport(work_record_id, content) in @assemblyline/lib-factory calls this.
Response
{ "success": true }
Errors
| Status | Code | Meaning |
|---|---|---|
400 | BAD_REQUEST | Invalid JSON or a missing field |
403 | FORBIDDEN | The work record belongs to another org |
404 | NOT_FOUND | No such work record |