---
title: "Set User Values"
method: POST
path: "/{databaseId}/users/{userId}"
tags: ["User Properties"]
---

# Set User Values

`POST /{databaseId}/users/{userId}`

Sets/updates (some) property values of the given user. The properties (columns) must be previously created by [Add user property](https://docs.recombee.com/api#add-user-property).

## Path parameters

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

## Query parameters

- `cascadeCreate` boolean

## Request body

- string

## Response `200`

Successful operation.

## Other responses

- `400` — Property name does not match ''^[a-zA-Z0-9_\-:]+$'', value does not agree to property type.
- `404` — Property of the given name is not present in the database. If there is no additional info in the JSON response, you probably have an error in your URL.

---

[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)
