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

client = SampleHealthcare(
    api_key="My API Key",
)
response = client.v2.tasks.complete(
    task_id="taskId",
)
print(response.next_task_id)
{
  "nextTaskId": "<string>"
}

Path Parameters

taskId
string
required

The unique identifier of the task to complete.

Body

application/json
result
any

The result data from the task's execution.

Response

Task completed successfully.

nextTaskId
string | null
required

The ID of the next task in the workflow, if any, or null.

I