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

# Create user

`POST /users`

This can only be done by the logged in user.

## Request body

- User
  - `id` integer
  - `name` string, required
  - `email` string, required
  - `credential` Credential
    - `username` string
    - `password` string

## Response `201`

User added

## Other responses

- `400` — Invalid user input

---

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