---
title: "Update a timeline event and workflow in batch"
method: PATCH
path: "/facility-credentialing-workflows/{workflowId}/timeline-events/{eventId}"
tags: ["FacilityCredentialingWorkflow"]
---

# Update a timeline event and workflow in batch

`PATCH /facility-credentialing-workflows/{workflowId}/timeline-events/{eventId}`

Updates specific fields of an existing timeline event and its associated workflow in a single atomic transaction. Supports partial updates of nextCredentialingDate, nextCredentialingDateSource, changeReason, and nextCredentialingDateChangeLog fields. Only works with CRED_APPROVED timeline events. Both timeline and workflow are updated in a single transaction batch for data consistency.

## Path parameters

- `eventId` string, required
- `workflowId` string, required

## Headers

- `tenant-id` string, required

## Request body

- UpdateFacilityTimelineEventRequest
  - `nextCredentialingDate` string, date
  - `nextCredentialingDateSource` string
  - `changeReason` string
  - `nextCredentialingDateChangeLog` NextCredDateChangeLogEntry1[]
    - `changedFrom` string, date
    - `changedTo` string, date
    - `changeReason` string

## Response `200`

Successfully updated the timeline event

- 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

## Other responses

- `400` — Invalid request data or business rule violation
- `401` — Unauthorized - Authentication required
- `403` — Forbidden - User does not have required permissions
- `404` — Timeline event or facility credentialing workflow not found
- `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/versions/3d27e9019c7b/schema)
