Update an existing user
Users
Update User
Updates user properties
PATCH
Update an existing user
Overview
Updates an existing user identified by theirproject_user_id. This endpoint allows you to modify user properties. Only the fields provided in the request will be updated.
Authentication
This endpoint requires authentication via the following HTTP headers:X-Clix-Project-ID: Your project IDX-Clix-API-Key: Your Clix Secret API Key
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
project_user_id | string | Yes | The unique identifier of the user to update |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
properties | object | No | User properties to update as key-value pairs where values can be string, number, boolean, or null |
Example Request
Response
Success Response (200 OK)
Returns the updated user properties:Error Responses
400 Bad Request
Returned when:project_user_idis missing or invalid- Request body is malformed
404 Not Found
The user with the specifiedproject_user_id does not exist.
Returns an empty response body with 404 status code.
401 Unauthorized
Authentication failed or invalid API key.Notes
- Only the properties provided in the request body will be updated
- Existing properties not included in the request will remain unchanged
- If the user does not exist, a 404 error will be returned
- Properties with the same key will be overwritten with the new values
- The response returns only the properties object, not the full user object
Authorizations
Project ID for authentication
API Key for authentication
Path Parameters
The unique identifier of the user to update
Body
application/json
User data to update
Request to update a user
User properties to update as key-value pairs
Response
User updated successfully
Response containing the updated user properties
User properties as key-value pairs