Skip to main content
POST
/
api
/
v2
/
tasks
/
{taskId}
/
cancel
Python
from samplehc import SampleHealthcare

client = SampleHealthcare(
    api_key="My API Key",
)
response = client.v2.tasks.cancel(
    "taskId",
)
print(response.message)
{
  "message": "<string>"
}

Path Parameters

taskId
string
required

The unique identifier of the task to cancel.

Response

Task cancelled successfully.

Task cancelled successfully.

message
string
required

Confirmation message that the task has been cancelled.