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

# Update User Admin

`PATCH /v1/admin_console/user/{user_id}`

## Request

- Base URL: `https://api.linktodm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.linktodm.com/v1/admin_console/user/{user_id}`
- Auth: HTTP bearer

Inline-edit phone_number / is_test_user from the admin Users table.

Admin role only — VIEWERs are rejected with 403. Emits an Axiom audit
log line on success (D6 audit policy).

## Path parameters

- `user_id` integer, required

## Request body

- AdminUpdateUserPayload: Inline-edit payload for the Users table. Mirrors the Appsmith `update_user` query — phone_number and is_test_user are the two fields admin tooling can edit.
  - `phone_number` string, nullable
  - `is_test_user` boolean, nullable

## Response `200`

Successful Response

- AdminUpdateUserResponse
  - `id` integer, required
  - `phone_number` string, nullable
  - `is_test_user` boolean, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/linktodm/apis/salesmorph.md) - [All operations](https://skmtc.dev/linktodm/apis/salesmorph/llms.txt) - [OpenAPI document](https://skmtc.dev/linktodm/apis/salesmorph/revisions/4af0ad5dbe92?raw)
