---
title: "Create a user"
method: POST
path: "/user"
tags: ["user"]
---

# Create a user

`POST /user`

## Request body

- User
  - `id` string, userId, required
  - `first_name` string, required
  - `second_name` string, required
  - `email` string, email, required
  - `password` string
  - `permission` string[], required

## Response `201`

Expected response to a valid request

- User
  - `id` string, userId, required
  - `first_name` string, required
  - `second_name` string, required
  - `email` string, email, required
  - `password` string
  - `permission` string[], required

## Other responses

- `default` — unexpected error

## Changes

> 16 revisions in range; 1 not diffed.

- **2019-10-10** `f16566c7c7ef` — 1 breaking, 1 info
  - the request property `permission` became required
  - the response property `permission` became required for the status `201`
- **2019-10-10** `3cfedab7cf0b` — 2 info
  - added the new optional request property `permission`
  - added the optional property `permission` to the response with the `201` status

[Change history](https://skmtc.dev/watchdogpolska/apis/small-eod/changes/user/post.md)

---

[API](https://skmtc.dev/watchdogpolska/apis/small-eod.md) · [All operations](https://skmtc.dev/watchdogpolska/apis/small-eod/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/watchdogpolska/small-eod/revisions/1c5ac40bf412/schema)
