---
title: "Update trip"
method: PUT
path: "/api/trips/{id}"
---

# Update trip

`PUT /api/trips/{id}`

## Request

- Base URL: `https://goyondo.run`
- URL: `https://goyondo.run/api/trips/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, uuid, required

## Request body

- TripCreate
  - `destination` string, required
  - `start_date` string, date, required
  - `end_date` string, date, required
  - `timezone` string: Traveler IANA time zone (e.g. America/Los_Angeles). Used to decide whether start_date is in the past. Not stored.
  - `travelers` integer
  - `interests` string[]
  - `travel_style` 'budget' | 'comfort' | 'luxury' | 'adventure'
  - `accommodation_type` 'hotel' | 'hostel' | 'airbnb' | 'resort' | 'camping' | 'bb'
  - `skip_ai_generation` boolean
  - `origin` Location: City-level location (home base or trip origin). Give city or airport_iata; the server resolves coordinates, timezone and, when omitted, the nearest airport.
    - `city` string
    - `country` string
    - `airport_iata` string
  - `arrival_time` string: Local arrival time on Day 1 (HH:MM). Overrides the estimate from the origin.
  - `departure_time` string: Local departure time on the last day (HH:MM).
  - `groupTripCode` string: Collaborative group trip code. When present, the server loads board consensus and readiness context for itinerary generation.
  - `regeneration_mode` 'replace' | 'new_version': Required when groupTripCode already has a linked itinerary. replace updates that itinerary; new_version creates and links a fresh trip.

## Response `200`

Updated trip

## Other responses

- `404`: Trip not found

---

[API](https://skmtc.dev/goyondo/apis/goyondo-api.md) · [All operations](https://skmtc.dev/goyondo/apis/goyondo-api/llms.txt) · [OpenAPI document](https://skmtc.dev/goyondo/apis/goyondo-api/revisions/36faed6f335d?raw)
