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

# POST /v1/users

`POST /v1/users`

Create a user.

## Request body

- object
  - `name` string, required — Name of the user.
  - `email` string, email, required — Email of the user.
  - `role` 'ADMIN' | 'ASSESSMENT' | 'ACCESSOR' | 'QUALIFYING_ACCESSOR', required — Role of the user.
  - `organisationId` string, uuid, required — Id of the organisation.
  - `unitIds` string[], required — Ids of the organisation units.

## Response `201`

The user has been created.

- object
  - `id` string — The user id.

## Other responses

- `400` — Bad request.
- `401` — The user is not authorized to create a user.
- `500` — An error occurred while creating the user.

## Changes

- **2023-08-24** `3419337bcb8a` — 1 breaking, 1 info
  - removed the success response with the status `200`
  - added the success response with the status `201`
- **2023-08-24** `6ddeb2c9e28d` — 1 breaking, 1 info
  - removed the success response with the status `201`
  - added the success response with the status `200`
- **2023-08-24** `75f7a3d8a09e` — 1 breaking, 1 info
  - removed the success response with the status `200`
  - added the success response with the status `201`
- **2023-08-22** `2b43f8cf5d91` — 2 breaking, 5 warning, 3 info
  - the request property `role` became not nullable
  - the request property `role` became required
  - the `email` request property's maxLength was set to `100`
  - the `name` request property's maxLength was set to `100`
  - …6 more

[Change history](https://skmtc.dev/nhs/apis/admin-api-nhs-innovation-service/changes/v1/users/post.md)

---

[API](https://skmtc.dev/nhs/apis/admin-api-nhs-innovation-service.md) · [All operations](https://skmtc.dev/nhs/apis/admin-api-nhs-innovation-service/llms.txt) · [OpenAPI document](https://skmtc.dev/nhs/apis/admin-api-nhs-innovation-service/revisions/6da082f36601?raw)
