---
title: "Update Trip"
method: PUT
path: "/api/v1/trips/{externalId}"
tags: ["Trips"]
---

# Update Trip

`PUT /api/v1/trips/{externalId}`

## Request

- Base URL: `https://www.endlesstravelplans.com`
- URL: `https://www.endlesstravelplans.com/api/v1/trips/{externalId}`
- Auth: HTTP bearer

Update trip details.

## Request body

- object
  - `status` string: Owner only. `archived` puts the trip away (it leaves the list unless `?include=archived`), `planning` brings it back. Any other value is a 422; a collaborator sending this field gets a 403.
  - `input_destination` string, nullable
  - `departure_date` string, nullable
  - `return_date` string, nullable
  - `num_adults` integer, nullable
  - `num_seniors` integer, nullable: How many of the adults are 65 or over. Min 0, max 20.
  - `num_children` integer, nullable
  - `children_ages` integer[]: Must be at least 0. Must not be greater than 17.
  - `trip_type` 'single_city' | 'multi_city', nullable
  - `stops` object[]: Must not have more than 8 items.
    - `destination` string: This field is required when <code>stops</code> is present. Must not be greater than 255 characters.
    - `nights` integer, nullable: Must be at least 0. Must not be greater than 30.
    - `travel_mode` string, nullable: Must not be greater than 20 characters.
    - `order` integer, nullable
    - `destination_id` integer, nullable

## Response `200`

- object
  - `trip` object
    - `external_id` string
    - `input_destination` string

## Other responses

- `401`: unauthenticated: No valid bearer token was sent.
- `403`
- `422`: validation_failed: The request body failed validation; field messages are in `errors`.
- `429`: rate_limited: A throttle or a per-account allowance refused the request; `retry_after` or `remaining` may be present.
- `500`: server_error: Unhandled failure; quote `request_id` to support.

---

[API](https://skmtc.dev/endlesstravelplans/apis/endless-travel-plans-api.md) · [All operations](https://skmtc.dev/endlesstravelplans/apis/endless-travel-plans-api/llms.txt) · [OpenAPI document](https://skmtc.dev/endlesstravelplans/apis/endless-travel-plans-api/revisions/ae82ed3e4a8f?raw)
