---
title: "Update User"
method: PUT
path: "/api/users/{user_id}"
tags: ["Users"]
---

# Update User

`PUT /api/users/{user_id}`

## Request

- Base URL: `https://data.getplace.io` (the document declares no server; this is the origin it was published from)
- URL: `https://data.getplace.io/api/users/{user_id}`
- Auth: OAuth 2
  - Password
  - Token URL: `/api/auth/login`

Update a user (admin only).

## Path parameters

- `user_id` integer, required

## Request body

- UserUpdate
  - `email` string, email, nullable
  - `name` string, nullable
  - `role` string, nullable
  - `is_active` boolean, nullable
  - `password` string, nullable
  - `allow_menu_access` boolean, nullable
  - `menu_access_items` MenuAccessItemSchema[], nullable
    - `country_code` string, nullable
    - `chain_ids` integer[], nullable
    - `city_ids` integer[], nullable

## Response `200`

Successful Response

- AppApiUsersUserResponse
  - `id` integer, required
  - `email` string, required
  - `name` string, required
  - `role` string, required
  - `is_active` boolean, required
  - `created_at` string, date-time, nullable, required
  - `updated_at` string, date-time, nullable, required
  - `last_login` string, date-time, nullable, required
  - `allow_menu_access` boolean
  - `menu_access_items` unknown[], nullable
    - unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getplace/apis/getplace-insights-api.md) - [All operations](https://skmtc.dev/getplace/apis/getplace-insights-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getplace/apis/getplace-insights-api/revisions/0f337387603f?raw)
