---
title: "Create User"
method: POST
path: "/api/users"
tags: ["Users"]
---

# Create User

`POST /api/users`

## 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`
- Auth: OAuth 2
  - Password
  - Token URL: `/api/auth/login`

Create a new user (admin only).

## Request body

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

## Response `201`

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)
