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

# Update User

`PUT /v1/user/{user_id}`

Update user details by user_id (_User.objectId) and developer association

## Path parameters

- `user_id` string, required

## Headers

- `X-API-Key` string, required

## Request body

- UpdateUserRequest — Request model for updating a user
  - `email` string, nullable
  - `external_id` string, nullable
  - `metadata` object, nullable
  - `type` 'developerUser' | 'user' | 'agent'

## Response `200`

Successful Response

- UserResponse — Response model for user operations
  - `code` integer, required — HTTP status code
  - `status` string, required — 'success' or 'error'
  - `user_id` string, nullable
  - `email` string, nullable
  - `external_id` string, nullable
  - `metadata` object, nullable
  - `created_at` string, nullable
  - `updated_at` string, nullable
  - `error` string, nullable
  - `details` unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/papr-ai/apis/papr-memory-api.md) · [All operations](https://skmtc.net/papr-ai/apis/papr-memory-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/papr-ai/papr-memory-api/versions/b553be9aad37/schema)
