---
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[]

## 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[]

## Other responses

- `default` — unexpected error

## Changes

> 3 revisions in range; 1 not diffed.

- **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/3cfedab7cf0b/schema)
