Bulk-delete records from one credentialing workflow section
POST/credentialing-workflows/:workflowId/:sectionName/bulk-delete
Deletes multiple records from a single section in one action (CP-36357, CP-37276). The supported sections are enumerated on the sectionName parameter; any other section is rejected with 400. Each recordId uses the '{section}-{index}' format (e.g. 'practiceLocations-3') and its section must match the sectionName path parameter, so a request can never delete outside the section it targets. Deletion is a single read-modify-write and soft-deletes the records: each removed record is archived into deletedData with the supplied intent/reason/reasonText, exactly as the single-record delete does. Partial failures (malformed, wrong section, out-of-bounds recordIds) are reported per record and do not block the valid deletions. NOTE: recordIds are positional, so this request must not be retried automatically — a replay after a successful-but-unseen response would delete whatever records shifted into those indices. Re-fetch the section and rebuild recordIds before any retry.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
- 503
At least one record was deleted; body reports the deleted and failed records
Unsupported section, empty/blank/invalid recordIds, invalid deletion metadata, a blank tenant-id, or a missing request body
Unauthorized - Authentication required
Forbidden - Insufficient permissions
Credentialing workflow not found
No record was deleted — every recordId failed (malformed, wrong section, or out-of-bounds); the body carries the per-record failure reasons
Internal server error
Feature disabled by kill switch