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

# Create user

`POST /users`

Create a new user. Admin only.

## Request body

- PkgServerCreateUserRequest
  - `password` string
  - `role` string
  - `username` string

## Response `201`

Created

- PkgServerCreateUserResponse
  - `user` PkgServerUserSummary
    - `id` integer
    - `role` string
    - `username` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `409` — Conflict

---

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