---
title: "Add User"
method: PUT
path: "/{databaseId}/users/{userId}"
tags: ["Users"]
---

# Add User

`PUT /{databaseId}/users/{userId}`

Adds a new user to the database.

## Path parameters

- `databaseId` string, required
- `userId` string, required

## Response `201`

Successful operation.

## Other responses

- `400` — The `userId` does not match ^[a-zA-Z0-9_\-:@\.]+$.
- `409` — User of the given userId is already present in the database. In many cases, you may consider this code a success – it only tells you that nothing has been written to the database.

---

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