Task API
Cancel Task
Cancel a task that is in progress
POST
Cancel a task that is still queued. A task can only be cancelled when its status is
PENDING. Once a task enters PROCESSING or SUBMITTED, it can no longer be cancelled.
The ID of the task to cancel.