Update Moment (patch a story)
update_momentPatch one owned moment by moment_id (from log_moment); fields left out are untouched. It stays private. Requires moment_id. Patchable: title, description, moment_date, moment_date_precision, end_date, moment_type, location_name, people, event_id, images, tags. Unknown or other-user moment_id returns an error and creates nothing. person_ids / people_names, media_urls and tags replace the stored list ([] clears); event_id links an owned event (the event is not changed), empty or null unlinks. Visibility is not an argument. Returns changed_fields. Requires API key or OAuth with context.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": {
"moment_id": "<moment_id>"
},
"name": "update_moment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Alias for moment_date. | |
| tags | No | Replaces the tags (max 20, 40 characters each). [] clears. | |
| title | No | New title (max 200). Cannot be empty. | |
| end_date | No | YYYY-MM-DD. Empty or null clears. | |
| event_id | No | Link the moment to an owned event (the event is not changed, max 128). Empty or null unlinks. | |
| location | No | Alias for location_name (max 300). | |
| moment_id | Yes | UUID of a moment the user owns (from log_moment, max 128). | |
| media_urls | No | Replaces the image links (max 10). [] clears. | |
| person_ids | No | Replaces the tagged people (with people_names, max 25). [] clears. Owned contact ids only. | |
| request_id | No | Client idempotency key (retries return original result). | |
| description | No | Replaces the story text. Empty or null clears. | |
| moment_date | No | YYYY-MM-DD, YYYY-MM or YYYY (alias date). | |
| moment_time | No | Optional local HH:mm or HH:mm:ss. Empty or null clears (date-only). | |
| moment_type | No | Default memory. | |
| people_names | No | Replaces the tagged people (with person_ids, max 25, 120 characters each); names match saved contacts only. | |
| location_name | No | Replaces the place (max 300). Empty or null clears. Alias: location. | |
| cover_image_url | No | https image link (max 2048). Empty or null clears. | |
| idempotency_key | No | Alias for request_id. | |
| moment_date_precision | No | How exact the date is. YYYY-MM and YYYY default to month and year; circa for "around then". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| moment | Yes | A moment: a story or memory, private to the owner. event_id links the event it is about. | |
| account | No | The Dayze account this data belongs to. With more than one Dayze connection, name it in the answer. | |
| message | Yes | ||
| provenance | No | Which connector wrote the record and which connected Dayze account received it. | |
| invalidates | No | ||
| people_tagged | Yes | ||
| changed_fields | Yes | The columns this call changed; empty when nothing differed. | |
| unresolved_people | Yes |