---
title: "Patch User"
method: PATCH
path: "/api/v1/users/{user_id}"
tags: ["Users"]
---

# Patch User

`PATCH /api/v1/users/{user_id}`

Update an existing user's data.

## Path parameters

- `user_id` string, uuid, required

## Request body

- UserUpdate
  - `is_active` boolean, nullable
  - `is_superuser` boolean, nullable
  - `last_login_at` string, date-time, nullable
  - `optins` object, nullable
  - `password` string, nullable
  - `profile_image` string, nullable
  - `username` string, nullable

## Response `200`

Successful Response

- UserRead
  - `create_at` string, date-time, required
  - `id` string, uuid
  - `is_active` boolean, required
  - `is_superuser` boolean, required
  - `last_login_at` string, date-time, nullable, required
  - `optins` object, nullable
  - `profile_image` string, nullable, required
  - `store_api_key` string, nullable, required
  - `updated_at` string, date-time, required
  - `username` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/langflow-ai/apis/langflow.md) · [All operations](https://skmtc.net/langflow-ai/apis/langflow/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langflow-ai/langflow/revisions/22962dc5e81b/schema)
