Undo the most recent timeline event on a workflow
DELETE/credentialing-workflows/:workflowId/timeline-events/latest
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.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
Successfully deleted the latest timeline event
Invalid request - cannot delete CRED_APPROVED or CRED_DENIED events
Unauthorized - Authentication required
Forbidden - User does not have required permissions
No timeline events found for the workflow or workflow not found
Conflict - Workflow is not the latest version for this practitioner
Internal Server Error - An unexpected error occurred