---
title: "Update Profile"
method: PUT
path: "/users/profile"
tags: ["users"]
---

# Update Profile

`PUT /users/profile`

## Request

- Base URL: `https://api.projectindi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.projectindi.com/users/profile`
- Auth: none declared

Update current user's profile.

Updates the client-writable columns of user_profiles - see
ProfileUpdateRequest for which, and why `email` is not one.

Authentication: JWT required via Authorization header

## Request body

- ProfileUpdateRequest: Fields that users can update directly. Note: onboarded and account_type are server-controlled. `email` is deliberately absent: `guard_user_profiles_server_columns` holds the column to the caller's own `auth.users` address, and this route writes on the caller's own JWT, so declaring the field made it the one writer that forwarded a client-supplied one. See `20260827125137` for the argument. Extra keys are ignored (pydantic's default), so a stale client still sending `email` is dropped rather than 500ing on the guard's raise.
  - `name` string, nullable
  - `first_name` string, nullable
  - `last_name` string, nullable
  - `default_child_id` string, nullable
  - `chat_onboarded` boolean, nullable
  - `parent_needs` string[], nullable

## Response `200`

Successful Response

- ProfileResponse
  - `profile` UserProfile, required
    - `name` string, nullable, required
    - `first_name` string, nullable, required
    - `last_name` string, nullable, required
    - `email` string, nullable, required
    - `onboarded` boolean, required
    - `chat_onboarded` boolean, required
    - `default_child_id` string, nullable, required
    - `account_type` string, nullable, required
    - `parent_needs` string[], nullable
    - `onboarding_setup_prefs` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles.md) - [All operations](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles/llms.txt) - [OpenAPI document](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles/revisions/25a7813e21fd?raw)
