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

200
application/json

Task cancelled successfully.