Update Trip
update_tripPatch a stored trip (trip_id from get_trips or log_travel): title, city, country (null clears), start_date, end_date (YYYY-MM-DD), kind (trip|residence|soft_pin), confidence (confirmed|likely|possible; status follows as log_travel sets it), evidence (null clears). Fields left out stay. Its private calendar event from log_travel follows the title, dates and place. Inferred trips (ids starting inferred:) are calendar events: edit those with update_event. Archived trips need restore_trip first. ($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": {
"trip_id": "<trip_id>"
},
"name": "update_trip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | A real city (not a region or state). | |
| kind | No | Entry kind: trip, residence or soft_pin, e.g. trip. | |
| title | No | Trip title, e.g. Tokyo spring trip. | |
| country | No | Country name, e.g. Singapore. | |
| trip_id | Yes | A stored trip id from get_trips, get_trip or log_travel. | |
| end_date | No | YYYY-MM-DD, on or after start_date | |
| evidence | No | Source note (Gmail id, booking, address); null clears it. | |
| confidence | No | How certain the stay is: confirmed, likely or possible, e.g. confirmed. | |
| request_id | No | Client idempotency key (retries return original result). | |
| start_date | No | YYYY-MM-DD | |
| idempotency_key | No | Alias for request_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trip | No | The stored trip after the change. | |
| account | No | The Dayze account this data belongs to. With more than one Dayze connection, name it in the answer. | |
| changed | No | Each changed field: { from, to }. | |
| message | No | ||
| updated | No | ||
| event_id | No | The trip's calendar event that followed the change, or null. | |
| provenance | No | Which connector wrote the record and which connected Dayze account received it. |