Bulk upload supporting documents to multiple facilities
POST/facilities/supporting-documents/bulk
Uploads one or more files exactly once each and links them as shared supporting-document attachments (source: "Bulk") to every selected facility. Facilities may be selected explicitly via certifyFacilityIds (JSON string form field), or via isSelectAll=true plus a filter JSON string (same encoding as GET /facilities). When isSelectAll is true, certifyFacilityIds is ignored; when false, filter is ignored. Target set size is capped (default 1000; see api-layer.facility.bulk-document-upload.max-facilities). HTTP 200 is returned for both full and partial success: per-file and per-facility outcomes are reported independently in the response body. When the feature kill switch is off, the endpoint returns 404 with an empty body (CP-35450).
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Bulk upload processed (full or partial success); see body for per-file and per-facility outcomes
Bad request - missing files/fileType, invalid certifyFacilityIds/filter JSON, no facilities resolved, or too many facilities targeted. Body shape is {"error": "
Unauthorized - Authentication required
Forbidden - Insufficient permissions
Not Found - bulk supporting-document upload is disabled for this environment (empty body)
Internal server error. Body shape is {"error": "