from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.tasks.cancel(
"taskId",
)
print(response.message)
{
"message": "<string>"
}
Marks a specified task as cancelled, preventing it from being executed. This also halts the execution of any subsequent tasks in the workflow.
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.tasks.cancel(
"taskId",
)
print(response.message)
{
"message": "<string>"
}
The unique identifier of the task to cancel.
Task cancelled successfully.