---
title: "POST /users"
method: POST
path: "/users"
---

# POST /users

`POST /users`

## Headers

- `Content-Type` string, required

## Request body

- PostUsers
  - `appClientId` string
  - `avatar` string, nullable
  - `email` string, required
  - `metadata` object
  - `name` string, nullable
  - `roleIds` string[]

## Response `200`

200 response

- User
  - `avatar` string, nullable
  - `createdBy` string, nullable, required
  - `createdTime` string, nullable, required
  - `email` string, required
  - `metadata` object, nullable
  - `name` string, nullable
  - `profileId` string, nullable
  - `roleIds` string[], nullable
  - `updatedBy` string, nullable, required
  - `updatedTime` string, nullable, required
  - `userId` string, required

## Other responses

- `400` — 400 response
- `403` — 403 response
- `404` — 404 response
- `415` — 415 response
- `500` — 500 response

## Changes

- **2023-08-25** `c8551bfdd99f` — 2 info
  - added the new optional request property `roleIds`
  - added the optional property `roleIds` to the response with the `200` status
- **2023-02-27** `38ef4f3feaaf` — 1 warning, 1 info
  - changed the pattern of the request property `appClientId` from `^las:app-client:[a-f0-9]{32}$` to `^las:app-client:[a-z0-9-_]+$`
  - added the optional property `profileId` to the response with the `200` status
- **2022-09-29** `424af607ab69` — 1 breaking
  - the response property `metadata` became nullable for the status `200`
- **2022-03-31** `13bf8cf663ba` — 2 info
  - added the new optional request property `metadata`
  - added the optional property `metadata` to the response with the `200` status
- **2021-11-05** `9788e6bfa925` — 7 warning, 5 info
  - changed the pattern of the request property `appClientId` from `^las:app-client:[a-z0-9-_]+$` to `^las:app-client:[a-f0-9]{32}$`
  - removed the request property `metadata`
  - removed the request property `roleIds`
  - removed the optional property `metadata` from the response with the `200` status
  - …8 more

[Change history](https://skmtc.dev/lucidtechai/apis/lucidtech-api/changes/users/post.md)

---

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