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

client = SampleHealthcare(
    api_key=os.environ.get("SAMPLEHC_API_KEY"),  # This is the default and can be omitted
)
state = client.v2.tasks.state.update(
    task_id="taskId",
    key="key",
)
print(state.success)
{
  "success": true
}

Path Parameters

taskId
string
required

The unique identifier of the task to update the state of.

Body

application/json

Response

200
application/json

Default Response

The response is of type object.