POST
/
api
/
v2
/
tasks
/
{taskId}
/
update-screen-time
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.update_screen_time(
    task_id="taskId",
    additional_screen_time=1,
)
print(response)
"null"

Path Parameters

taskId
string
required

The unique identifier of the task for which to update screen time.

Body

application/json

Response

204
application/json

Screen time updated successfully. No content returned.

Available options:
null