---
title: "Update user preferences"
method: PUT
path: "/api/users/me/preferences"
---

# Update user preferences

`PUT /api/users/me/preferences`

## Request

- Base URL: `https://goyondo.run`
- URL: `https://goyondo.run/api/users/me/preferences`
- Auth: HTTP bearer

Partial update: fields left out keep their saved values. Agents cannot set home_base; they get 403 confirmation_required with error.details[0].confirm_url for the user to confirm in the app.

## Request body

- object
  - `interests` string[]
  - `travel_style` 'budget' | 'comfort' | 'luxury' | 'adventure' | 'cultural' | 'relaxation'
  - `accommodation_type` 'hotel' | 'hostel' | 'airbnb' | 'resort' | 'camping' | 'guesthouse' | 'apartment'
  - `budget_range` 'under-500' | '500-1000' | '1000-2000' | '2000-5000' | 'over-5000'
  - `preferred_destinations` string[]
  - `dietary_restrictions` string[]
  - `accessibility_needs` string[]
  - `home_base` 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

## Response `200`

Updated preferences, including home_base

## Other responses

- `400`: Validation failed, or the home base city was not found
- `403`: confirmation_required: agents cannot set home_base. error.details[0].confirm_url opens Travel Preferences pre-filled for the user

---

[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)
