Skip to main content
POST
/
api
/
v2
/
tasks
/
{taskId}
/
update-screen-time
Python
from samplehc import SampleHealthcare

client = SampleHealthcare(
    api_key="My API Key",
)
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
additionalScreenTime
number
required

The additional screen time in milliseconds to add to the task's total.

Required range: x > 0

Response

enum<string> | null

Screen time updated successfully. No content returned.

Available options:
null
I