---
title: "Update User"
method: PUT
path: "/users/{user_id}"
tags: ["users"]
---

# Update User

`PUT /users/{user_id}`

## Request

- Base URL: `https://api.trytrata.com`
- URL: `https://api.trytrata.com/users/{user_id}`
- Auth: HTTP bearer

## Path parameters

- `user_id` string, required

## Request body

- UserUpdateRequest
  - `first_name` string, nullable
  - `last_name` string, nullable
  - `username` string, nullable
  - `avatar_url` string, nullable
  - `tagline` string, nullable
  - `phone_number` string, nullable
  - `sms_opted_in` boolean, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `400`: Validation error
- `404`: Not found
- `409`: Username is already taken
- `422`: Validation Error

## Changes

- **2026-09-24** `2c3ccb95ca8d`: 2 breaking
  - removed the media type `application/json` for the response with the status `400`
  - removed the media type `application/json` for the response with the status `409`
- **2026-09-09** `8a38d3a2ed97`: 2 warning
  - removed the request property `fund_type`
  - removed the request property `portfolio_style`

[Operation history](https://skmtc.dev/trytrata/apis/trytrata-api/changes/users/:user_id/put.md)

---

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