User

Update a user.

PATCH
Update a user.

Path parameters

userIdstringRequired
User ID

Request

This endpoint expects an object.
email
stringOptional
The email address of the user.
first_name
stringOptional
The first name of the user.
last_name
stringOptional
The last name of the user.
metadata
map from strings to anyOptional
The metadata to update

Response

This endpoint returns an object
created_at
stringOptional
deleted_at
stringOptional
email
stringOptional
first_name
stringOptional
id
integerOptional
last_name
stringOptional
metadata
map from strings to anyOptional
project_uuid
stringOptional
session_count
integerOptional
updated_at
stringOptional
user_id
stringOptional
uuid
stringOptional

Errors

PATCH
1curl -X PATCH https://api.getzep.com/api/v2/users/userId \
2 -H "Authorization: Api-Key <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{}'
1{
2 "created_at": "created_at",
3 "deleted_at": "deleted_at",
4 "email": "email",
5 "first_name": "first_name",
6 "id": 1,
7 "last_name": "last_name",
8 "metadata": {
9 "metadata": {
10 "key": "value"
11 }
12 },
13 "project_uuid": "project_uuid",
14 "session_count": 1,
15 "updated_at": "updated_at",
16 "user_id": "user_id",
17 "uuid": "uuid"
18}