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

# Create user

`POST /api/v1/users`

Creates a new user. Requires admin privileges or access to Users and Roles portlets. FirstName, LastName, Email and Password are required

## Request body

- UserForm
  - `userId` string
  - `active` boolean
  - `firstName` string, required
  - `middleName` string
  - `lastName` string, required
  - `nickName` string
  - `email` string, required
  - `male` boolean
  - `birthday` string
  - `languageId` string
  - `timeZoneId` string
  - `password` string[]
  - `additionalInfo` object
  - `roles` string[]

## Response `200`

User created successfully

- ResponseEntityUserUpdateView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` object
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `400` — Bad request - missing required fields or invalid data
- `401` — Unauthorized - authentication required
- `403` — Forbidden - insufficient permissions to create users
- `409` — Conflict - user already exists
- `500` — Internal server error

---

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