latestOpenAPI 3.1.02026-08-194237902.5 MB

563848e0ecc0

MonitoringWorkflow

Upload an attachment to a workflow section record

Attaches a file to a specific record within a monitoring workflow section. Use this endpoint to associate evidence or supporting files with a discrete record (e.g. a DEA row, a license row). The id form field identifies the target record using the format {section}-{index} (e.g. dea-0, licenses-1) — this value comes from the workflow's section data. The file form field is the binary file content and is required. The expirationDate form field is optional. Requires MONITORING_WORKFLOW_DETAILS_UPDATE and MONITORING_WORKFLOW_DETAILS_ATTACHMENTS_CREATE. The tenant-id header is mandatory.

post/monitoring-workflows/{workflowId}/attachments

Path parameters

workflowIdstring required

Monitoring workflow ID

Headers

tenant-idstring required

Response

Attachment uploaded: {message, attachment: {fileUrl, fileType, originalFileName, expirationDate, createdAt, createdBy}}. fileUrl is the stored file's location.

messagestring

Success message

Example response

{
  "message": "Attachment uploaded successfully",
  "attachment": {
    "createdAt": "2024-01-15T10:30:00Z",
    "fileType": "DEA Certificate",
    "fileUrl": "monitoring-workflow-attachments/workflow-123/dea/1729771200000_dea-certificate.pdf",
    "originalFileName": "dea-certificate.pdf",
    "expirationDate": "2025-12-31"
  }
}