Update Sleep
update_sleepSleep: patch an existing sleep record by sleep_id. ($0.10; API key required)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sleep_id": "<sleep_id>"
},
"name": "update_sleep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Free-text note, e.g. Follow up next week. | |
| quality | No | Sleep quality rating, e.g. 4. | |
| ended_at | No | End as ISO date-time, e.g. 2026-10-17T07:00:00+08:00. | |
| sleep_id | Yes | Sleep record id, e.g. 3f2a1b4c-8d9e-6f01-c2b3-c4d5e6f70809. | |
| timezone | No | IANA time zone, e.g. America/Los_Angeles. | |
| request_id | No | Client idempotency key (retries return original result). | |
| sleep_type | No | Sleep record type: overnight, nap or unknown, e.g. overnight. | |
| started_at | No | Start as ISO date-time, e.g. 2026-10-16T23:00:00+08:00. | |
| idempotency_key | No | Alias for request_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| sleep | No | ||
| account | No | The Dayze account this data belongs to. With more than one Dayze connection, name it in the answer. | |
| message | No | ||
| provenance | No | Which connector wrote the record and which connected Dayze account received it. |