ApiUsers
Update a user
PATCH
Updates an existing user. All fields are optional. Cache is invalidated after update.
bearerid*stringUser UUID
X-API-Version?stringAPI version for header-based versioning
Default
"1"Value in
"1""2"application/json- body
email?stringUser email address
firstName?stringUser first name
Length
2 <= length <= 50lastName?stringUser last name
Length
2 <= length <= 50password?stringUser password (optional - temporary password generated if not provided)
Length
8 <= length <= 100isActive?booleanUser active status
avatarUrl?stringAvatar image URL (Vercel Blob)
User has been successfully updated.
response?unknownapplication/jsoncurl -X PATCH 'http://localhost:3001/api/v1/users/6dd9ca2a-4a9f-4155-ad34-4cf6a575eebe' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "status": "success", "statusCode": 200, "message": "User updated successfully", "data": { "id": "6dd9ca2a-4a9f-4155-ad34-4cf6a575eebe", "email": "john.updated@example.com", "firstName": "John", "lastName": "Doe", "isActive": true, "createdAt": "2026-01-27T10:23:22.983Z", "updatedAt": "2026-01-27T10:30:00.000Z" }, "meta": { "user_id": "6dd9ca2a-4a9f-4155-ad34-4cf6a575eebe", "updated_at": "2026-01-27T10:30:00.000Z" }, "timestamp": "2026-01-27T10:30:00.015Z", "path": "/api/v1/users/6dd9ca2a-4a9f-4155-ad34-4cf6a575eebe"}