---
title: "Update Transport"
method: PATCH
path: "/api/v1/users/me/transport"
tags: ["users"]
---

# Update Transport

`PATCH /api/v1/users/me/transport`

## Request

- Base URL: `https://yondry.app` (the document declares no server; this is the origin it was published from)
- URL: `https://yondry.app/api/v1/users/me/transport`
- Auth: HTTP bearer

Update the user's transport mode preferences.

Validates that all supplied modes are in {driving, walking, cycling, transit}
and that the list is non-empty.  Sets primary_transport_mode to modes[0].

If update_radius=True, also resets default_radius_km to the default radius
for the primary mode (e.g. walking → 5 km, driving → 50 km).

## Request body

- TransportModeUpdate: PATCH /users/me/transport — update transport mode preferences. transport_modes: list of enabled modes (validated by TransportService) update_radius: if True, also reset default_radius_km to the mode default for the primary (first) mode
  - `transport_modes` string[], required
  - `update_radius` boolean

## Response `200`

Successful Response

- UserResponse: Full user profile response. Exposes both the new field names introduced in the home-settings feature (home_lng, home_address, default_radius_km, radius_unit) AND the legacy names (home_lon, home_label, travel_radius_km) so existing clients and tests are not broken.
  - `id` string, uuid, required
  - `email` string, email, required
  - `is_active` boolean, required
  - `is_verified` boolean, required
  - `display_name` string, nullable
  - `avatar_url` string, nullable
  - `auth_provider` string
  - `onboarding_completed` boolean
  - `home_lat` number, nullable
  - `home_lng` number, nullable
  - `home_address` string, nullable
  - `home_place_id` string, nullable
  - `default_radius_km` number
  - `radius_unit` string
  - `home_lon` number, nullable
  - `home_label` string, nullable
  - `travel_radius_km` number, nullable
  - `transport_modes` string[]
  - `primary_transport_mode` string
  - `location_history_opt_in` boolean
  - `children` ChildOut[]
    - `id` string, uuid, required
    - `age_range` string, required
    - `label` string, nullable, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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