---
title: "Update user information by ID"
method: PATCH
path: "/api/user/{user_id}"
tags: ["Users"]
---

# Update user information by ID

`PATCH /api/user/{user_id}`

Updates information about the user with the given `user_id`.
Requires `admin`, the same user ID as the API owner, or the
`access_user_info` + `edit_user_info` permissions.

## Request body

- UserUpdateBodyWithActive — Same as `UserUpdateBody` plus the `active` flag, which may only be set when modifying another user (not oneself or the original admin).
  - `first_name` string — The user's first name.
  - `last_name` string — The user's last name.
  - `country` string — Country code (e.g. "US").
  - `subdivisionfirst` string — State.
  - `subdivisionsecond` string — County.
  - `subdivisionthird` string — Municipality.
  - `organization` string — Organization name.
  - `timezone` string — Time-zone string (e.g. "America/New_York").
  - `language` string — Language code (e.g. "en").
  - `password` string — New password for the user.
  - `old_password` string — Current password. Required when changing the password so that encrypted interview answers can be re-encrypted with the new key.
  - `active` boolean — Whether the user account should be active. Cannot be changed for the current user or the original admin account.

## Response `204`

User information updated.

## Other responses

- `400` — Bad request.
- `403` — Access denied or insufficient privileges.
- `404` — User not found.

---

[API](https://skmtc.dev/docassemble/apis/docassemble-api.md) · [All operations](https://skmtc.dev/docassemble/apis/docassemble-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/docassemble/docassemble-api/revisions/a75d7eea6826/schema)
