Skip to main content

Update a user

API operation: Open the endpoint in Scalar

Use POST /users/{user} to partially update a user by numeric ID. The current public operation is User.update.users_user.

The final path parameter {user} identifies the user being updated. This API intentionally uses POST, not PUT or PATCH, for this update route.

An authenticated user can update their permitted profile fields. Administrator, business-manager, call-center-agent, and driver-manager flows have additional role-specific scope, but a user cannot change their own level; non-administrator updates do not apply level or driver_zone_restriction.

Changing a verified cellphone may require verification_code, depending on the request.

Legacy SDK example​

const response = await ordering.users(userId).save()

Confirm the SDK package and version before using this helper.

OpenAPI reference​

Operation: POST /users/{user}

Path parameters

NameTypeRequiredDescription
userintegerYes—

Header parameters

NameTypeRequiredDescription
User-AgentstringNo—

Request body fields

NameTypeRequired
cellphonestringNo
city_idintegerNo
country_codestringNo
country_phone_codestringNo
emailstringNo
lastnamestringNo
levelintegerNo
locationobjectNo
namestringNo
passwordstringNo
scheduleobjectNo
settingsobjectNo

Responses

CodeDescription
200OK (UserResponse)
400Bad Request (ErrorResponse)
401Unauthorized
404Not Found
429Too Many Requests (ErrorResponse)
500Internal Server Error (ErrorResponse)
503Service Unavailable (ErrorResponse)
Open this operation in the API reference