Update itinerary item
segment_updateUpdate an existing segment. Only provide the fields you want to change. Get field names from segment_get_schema if unsure. Segment dates must fall within the parent trip dates; use trip_update first to extend the trip. To change a checklist's tasks use checklist_items_add, checklist_item_update, checklist_items_remove or checklist_items_reorder (IDs from trip_checklists). The result lists the saved value of every field you sent, read back from Tineo, so do not call segment_details to confirm the change. On an Activity, Lodging, EventTicket or Parking, fields.placeId (a place_id from places_search) attaches that place the same way segment_associate_place does, replacing the stored address with the place's. Never invent a time: if the user has not given or chosen one, ask, or send the date only (YYYY-MM-DD) in startDateTime and Tineo stores it as time not set. Send a clock time only when the user stated it or a booking shows it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Alias for segment_id (widget compatibility) | |
| fields | No | Field values to update. Only include fields that should be changed. Send null to clear an optional field; an empty string is ignored and the stored value is kept. | |
| segment_id | No | The ID of the segment to update |