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
- 200
- 400
- 401
- 403
- 404
- 500
Supporting documents updated successfully
Bad request - the request body is null, or an element is missing a required field (fileUrl, fileType, or originalFileName)
Unauthorized - Authentication required
Forbidden - Insufficient permissions
Monitoring workflow not found
Internal server error