latestOpenAPI 3.1.02026-08-194237902.5 MB
563848e0ecc0
CredentialingWorkflow
Undo the most recent timeline event on a workflow
Deletes the most recent timeline event (by creation date) for the credentialing workflow identified by workflowId and returns the deleted event object. Use this to reverse an incorrectly applied status transition. Only works on the latest workflow version for a practitioner. Cannot delete events of type CRED_APPROVED or CRED_DENIED because their side effects (e.g. downstream notifications) cannot be reversed. Note: there is a small race window — if another timeline event is created concurrently between the fetch and the delete, the previously-latest event will be deleted instead of the one you intended.
delete/credentialing-workflows/{workflowId}/timeline-events/latest
Path parameters
workflowIdstring required
ID of the credentialing workflow
Headers
tenant-idstring required
Tenant ID
Response
Successfully deleted the latest timeline event
Example response
{
"id": "te_123456",
"workflowId": "cw_123456",
"data": {
"name": "CRED_APPROVED",
"changeReason": "Application approved by committee",
"credentialingDecisionDate": "2022-03-10",
"nextCredentialingDate": "2022-03-10",
"nextCredentialingDateSource": "SYSTEM_CALCULATED",
"nextCredentialingDateChangeLog": [
{
"changedFrom": "2022-03-10",
"changedTo": "2022-03-10",
"changeReason": "Updated based on new license expiration",
"createdBy": "user_123456",
"createdAt": "2024-01-15T10:30:00Z"
}
],
"psvPdfPath": "/files/psv_123456.pdf",
"overrideReason": "Test override reason",
"isOverride": true
},
"createdBy": "user_123456",
"updatedBy": "user_123456",
"createdAt": "2022-03-10T16:15:50Z",
"updatedAt": "2022-03-10T16:15:50Z"
}