Update Event (calendar patch)
update_eventMUTATES one existing calendar event the authenticated user owns. Required: event_id (UUID). Optional patch (same fields as log_event): title, date / event_date, time / event_time, end_date, end_time, location, description (alias notes), category, external_url, image_url, timezone, visibility, people / with / person_ids, scoreboard (merged; null clears), reminder_enabled (false turns the push reminder off; needs a timed event to turn on), reminder_minutes_before. Adds a bedtime to a wake-only sleep: event_time (and event_date / end_date when it was the night before). Unknown or other-user event_id returns an error and does not create a row. For food-diary meals, prefer update_food (it syncs the mirrored event). Rebuilds life_state. Requires API key or OAuth with scope context. Share tokens cannot write. ($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": {
"event_id": "<event_id>"
},
"name": "update_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Alias for event_date | |
| time | No | Alias for event_time | |
| with | No | Alias: people | |
| notes | No | Alias for description | |
| title | No | Updated title (replaces). Cannot be empty. | |
| people | No | People names or person UUIDs to add (event_people role=with). Does not remove existing tags. | |
| category | No | Category, e.g. sleep, work | |
| end_date | No | Optional end date YYYY-MM-DD (multi-day, or a night that ends the next day) | |
| end_time | No | Optional end time (same formats as event_time) | |
| event_id | Yes | UUID of a calendar event the authenticated user owns | |
| location | No | Empty or null clears | |
| timezone | No | IANA timezone for wall-clock display. Empty or null clears. | |
| image_url | No | Cover image URL. Empty or null clears. | |
| event_date | No | Start date YYYY-MM-DD, YYYY-MM, or YYYY. Alias: date. | |
| event_time | No | Start time: 8pm, 20:00, or 20:00:00. Empty or null clears. Alias: time. | |
| person_ids | No | Owned person ids | |
| request_id | No | Client idempotency key (retries return original successful result) | |
| scoreboard | No | Status data; state required if new; null clears | |
| visibility | No | Updates both events.visibility and the enforced events.is_private flag | |
| description | No | Notes about the event (replaces). Empty or null clears. Alias: notes. | |
| person_name | No | Person to tag | |
| external_url | No | Link to the source page, e.g. https://example.com/events/42. | |
| people_names | No | Alias: people | |
| date_precision | No | Soft date precision stored in metadata | |
| idempotency_key | No | Alias for request_id | |
| reminder_enabled | No | Turn the push reminder on or off. A timed event is needed to turn it on; all-day events stay off. | |
| expected_updated_at | No | Optional ISO updated_at you last read. Write applies only if unchanged; otherwise code "conflict" with the current record and changes nothing. | |
| reminder_minutes_before | No | Push lead time in minutes (snapped to 0, 5, 15, 30, 60, 1440 or 10080) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | Yes | A Dayze calendar event record. | |
| account | No | The Dayze account this data belongs to. With more than one Dayze connection, name it in the answer. | |
| changed | Yes | Changed fields with before and after values. | |
| provenance | No | Which connector wrote the record and which connected Dayze account received it. | |
| people_tagged | Yes | ||
| unresolved_people | Yes | ||
| life_state_rebuilt | Yes |