# Update user custom field values

`PUT https://api.cademi.com.br/api/v3/users/{user_id}/custom-fields`

Operation ID: `users.custom_fields.update` · API v3

Sets custom field values for the user. Send a `values` object keyed by custom field public ID. Custom fields not included in the request keep their current values.

Values are validated against the field type: `number` fields require a numeric value and `date` fields require the `YYYY-MM-DD` format. Invalid values return `validation_failed`, with the affected field identified in `details[].field`.

If custom fields are not enabled for the account, the API returns `feature_disabled`.

Required permissions: `users.update`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `user_id` | path | string | yes |  |

## Request body

Content type: `application/json`, required.

| Field | Type | Required | Description |
|---|---|---|---|
| `values` | object | yes |  |

## Responses

### 200

Returns all of the user's custom field values after the update.

Body: object.

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 404

The user or custom field was not found or is not accessible with the current credentials.

Body: Error.

### 409

Custom fields are not enabled for the account.

Body: Error.

### 422

The request body or query parameters failed validation.

Body: ValidationFailed.

Full schema: https://cademi.dev/openapi/v3.json
