Skip to main content

Update User

Updates user information for a specific user by their ID.

Request

PUT /v2/users/users/{user_id}

Parameters

NameTypeInDescription
user_idstringpathRequired. The ID of the user to update

Headers

NameDescription
AuthorizationRequired. Bearer token for authentication
Content-TypeRequired. Must be application/json
User-AgentOptional. Client application identifier

Request Body

FieldTypeDescription
namestringOptional. User's first name
surnamestringOptional. User's last name

Example

curl --request PUT \
--url '\{\{baseUrl\}\}/v2/users/users/680c02896d91ca0145cfeb81' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRJRCI6IjMxYzU4ZGI4LTQ4MmMtNDhiNS04Yzg0LTg4MDBjNzIwMDFhZCIsImV4cGlyYXRpb24iOjE3NTcwNzc0OTksInN1cGVydmlzb3JFbWFpbCI6InViZXJAYXBleC5jb20iLCJzdXBlcnZpc29ySUQiOiI2NjViMzcyZjNhNzJkN2QwNzkxNTk2YmEiLCJzdXBlcnZpc29yTm9kZUlEIjoiNjY1YWU1MzZhNjM5MmI3NWNmZDQwMzUyIiwic3VwZXJ2aXNvck5vZGVJbnRJRCI6MSwic3VwZXJ2aXNvck5vZGVQYXRoIjoiMSIsInN1cGVydmlzb3JSb2xlSUQiOiI2NjVhZTc5NjEwY2UyMTZkYmMzNWM5M2IiLCJzdXBlcnZpc29yUm9sZVByaW9yaXR5IjoxMDB9.BiBDnRfdsP-3MSMYR81sPeFXu7oqG-PtbPcEGGIB8Fo' \
--header 'Content-Type: application/json' \
--header 'User-Agent: insomnia/11.5.0' \
--data '{
"name": "New Name",
"surname": "New Surname"
}'

Response

A successful response returns no content:

Status Code: 200 OK

Response Body: No content

Status Codes

Status CodeDescription
200Success - User information updated successfully
400Bad Request - Invalid request parameters or body
401Unauthorized - Invalid or missing authentication token
404Not Found - User ID does not exist
500Internal Server Error