Skip to content
Home

Cancel Task

Cancellation can use the cancel_url from the create-task response, or build the request path with BASE_URL, endpoint, and request_id. Cancellation requests use the PUT method.

Terminal window
curl -sS -X PUT "${CANCEL_URL}" \
"${COMMON_HEADERS[@]}"
HTTP status codestatusMeaning
202CANCELLATION_REQUESTEDCancellation request accepted
400ALREADY_COMPLETEDThe task is already terminal and cannot be canceled
404NOT_FOUNDThe task does not exist or access is not permitted