POST
/
api
/
v2
/
tasks
/
{taskId}
/
cancel
import os
from samplehc import SampleHealthcare

client = SampleHealthcare(
    api_key=os.environ.get("SAMPLEHC_API_KEY"),  # This is the default and can be omitted
)
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.