Skip to main content

Replace all supporting documents for a workflow

PUT 

/monitoring-workflows/:workflowId/supporting-documents

Replaces the entire supporting documents collection for the specified monitoring workflow with the provided array (full-replace PUT semantics). Use this endpoint to set the complete desired state in one call; to add a single new document without touching existing ones, use POST /monitoring-workflows/{workflowId}/supporting-documents. Supplying an empty array removes all supporting documents from the workflow — this is irreversible via this endpoint. Each element must supply fileUrl, fileType, and originalFileName (all required); createdAt, createdBy, state, expirationDate, and source are optional. Requires MONITORING_WORKFLOW_DETAILS_CREATE, MONITORING_WORKFLOW_DETAILS_UPDATE, and MONITORING_WORKFLOW_DETAILS_SUPPORTING_DOCUMENTS_CREATE. The tenant-id header is mandatory.

Request​

Responses​

Supporting documents updated successfully