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

# Create user

`POST /users`

## Request

- Base URL: `https://localhost:8446/api/v2`
- URL: `https://localhost:8446/api/v2/users`
- Auth: API key in header `Authorization`

Create new user.

## Request body

- object
  - `type` string, required: User type
  - `user_group_ids` number, required: User groups id
  - `username` string: User name. Only for internal users
  - `email` string: User email. Only for internal users
  - `password` string: Password. Only for internal users
  - `query` string: Search query. Only for ldap user and ldap group

## Response `200`

Successful response

- object

## Other responses

- `default`: Error response. Depending on the error, either a 4xx or 5xx response status is returned.

---

[API](https://skmtc.dev/resilio/apis/resilio-api.md) - [All operations](https://skmtc.dev/resilio/apis/resilio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/resilio/apis/resilio-api/revisions/ca39130a395e?raw)
