Cancel a workflow session
URL
POST https://api.complycube.com/v1/workflowSessions/:id/cancel
Cancels an existing workflow session only when its current status is started. When the request succeeds, the workflow session status is updated to cancelled.
Headers
Name
Type
Description
Authorization*
string
The API live or test key.
Path parameters
Name
Type
Description
id*
string
The ID of the workflow session.
Example request
curl -X POST https://api.complycube.com/v1/workflowSessions/{:wfSessionId}/cancel \
-H 'Authorization: <YOUR_API_KEY>' \
-H 'Content-Type: application/json'Example response
{}{
"type": "resource_not_found",
"message": "Invalid workflow session id '5eb2b61e02df0a0008f1cf2b'"
}
