Cancel a running or waiting workflow instance.
curl --request POST \
--url https://api.example.com/api/v1/workflow-instances/{instance_id}/cancel{
"id": "<string>",
"workflow_id": "<string>",
"account_id": "<string>",
"status": "<string>",
"current_step": "<string>",
"context": {},
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"error_message": "<string>",
"resume_job_id": "<string>"
}Successful Response
curl --request POST \
--url https://api.example.com/api/v1/workflow-instances/{instance_id}/cancel{
"id": "<string>",
"workflow_id": "<string>",
"account_id": "<string>",
"status": "<string>",
"current_step": "<string>",
"context": {},
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"error_message": "<string>",
"resume_job_id": "<string>"
}