---
title: "Change status of multiple facility credentialing workflows"
method: POST
path: "/facility-credentialing-workflows/timeline-events"
tags: ["FacilityCredentialingWorkflow"]
---

# Change status of multiple facility credentialing workflows

`POST /facility-credentialing-workflows/timeline-events`

Creates timeline events for multiple facility credentialing workflows in a single operation. This allows changing the status of multiple workflows at once. Each workflow is processed independently, and the response includes both successful and failed operations.

## Headers

- `tenant-id` string, required

## Request body

- BulkFacilityStatusChangeRequest — Request to change status of multiple facility credentialing workflows
  - `workflowIds` string[] — List of facility credentialing workflow IDs to update. Required when isSelectAll is false. Ignored when isSelectAll is true (workflow IDs will be fetched using the filter).
  - `timelineEventData` CreateFacilityTimelineEventRequest, required
    - `name` string, required
    - `changeReason` string
    - `credentialingDecisionDate` string, date
    - `nextCredentialingDate` string, date
    - `overrideReason` string
    - `isOverride` boolean
  - `filter` string — Filter criteria as JSON string (URL encoded). Used to fetch workflow IDs when isSelectAll is true. See GET /facility-credentialing-workflows endpoint documentation for filter format.
  - `isSelectAll` boolean — If true, fetch all workflow IDs matching the filter criteria instead of using workflowIds. When true, filter parameter is required and workflowIds will be ignored.

## Response `200`

Bulk status change operation completed. Check successful and failed arrays for details.

- BulkFacilityStatusChangeResponse — Response containing results of bulk facility status change operation
  - `successful` StatusChangeResult1[], required — List of successful status changes
    - `workflowId` string — Workflow ID that was processed
    - `timelineEvent` FacilityTimelineEventResponse
      - `id` string
      - `workflowId` string
      - `createdBy` string
      - `createdAt` string, date
      - `updatedAt` string, date
      - `updatedBy` string
      - `data` FacilityTimelineEventschema
        - `credentialingDecisionDate` string, date, required
        - `nextCredentialingDate` string, date, required
        - `nextCredentialingDateSource` 'SYSTEM_CALCULATED' | 'USER_INPUT'
        - `changeReason` string, required
        - `psvPdfPath` string
        - `nextCredentialingDateChangeLog` FacilityCredApprovedNextCredentialingDateChangeLogInner[]
          - `changedFrom` string, date, required
          - `changedTo` string, date, required
          - `changeReason` string, required
          - `createdBy` string, required
          - `createdAt` string, date, required
        - `isOverride` boolean
        - `overrideReason` string
    - `errorMessage` string — Error message if the operation failed
    - `errorCode` string — Error code if the operation failed
  - `failed` StatusChangeResult1[], required — List of failed status changes
    - `workflowId` string — Workflow ID that was processed
    - `timelineEvent` FacilityTimelineEventResponse
      - `id` string
      - `workflowId` string
      - `createdBy` string
      - `createdAt` string, date
      - `updatedAt` string, date
      - `updatedBy` string
      - `data` FacilityTimelineEventschema
        - `credentialingDecisionDate` string, date, required
        - `nextCredentialingDate` string, date, required
        - `nextCredentialingDateSource` 'SYSTEM_CALCULATED' | 'USER_INPUT'
        - `changeReason` string, required
        - `psvPdfPath` string
        - `nextCredentialingDateChangeLog` FacilityCredApprovedNextCredentialingDateChangeLogInner[]
          - `changedFrom` string, date, required
          - `changedTo` string, date, required
          - `changeReason` string, required
          - `createdBy` string, required
          - `createdAt` string, date, required
        - `isOverride` boolean
        - `overrideReason` string
    - `errorMessage` string — Error message if the operation failed
    - `errorCode` string — Error code if the operation failed
  - `totalCount` integer, required — Total number of workflows processed
  - `successCount` integer, required — Number of successful changes
  - `failureCount` integer, required — Number of failed changes

## Other responses

- `400` — Invalid request data
- `401` — Unauthorized - Authentication required
- `403` — Forbidden - User does not have required permissions
- `500` — Internal Server Error - An unexpected error occurred

---

[API](https://skmtc.net/certifyos/apis/certify-api-layer.md) · [All operations](https://skmtc.net/certifyos/apis/certify-api-layer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/certifyos/certify-api-layer/revisions/3d27e9019c7b/schema)
