Edit User
Description
Section titled “Description”wss user_edit
The user_edit
request can modify certain fields of the user object.
Request Parameters
Section titled “Request Parameters”Name | Type | Description |
---|---|---|
current_password | string | Current user pasword |
new_password | string | New user password |
first_name | string | First name |
last_name | string | Last name |
email | string | Email address |
phone | string | Phone number |
avatar_object.file_blur_hash | string | Blur hash for avatar |
avatar_object.file_name | string | Avatar image name |
avatar_object.file_id | string | Avatar file id |
Response Fields
Section titled “Response Fields”Name | Type | Description |
---|---|---|
user | object | Newly updated user object |
Example
Section titled “Example”{ "request": { "user_edit": { "current_password": "OldPasswrod123", "new_password": "NewPassword321", "email": "emai@example.com", "phone": "7812356713" }, "id": "RequestId" }}
{ "response": { "id": "RequestId", "user": { "id": "63480e68f4794709f802a2fa", "login": "User123", "phone": "7812356713", "email": "emai@example.com", "created_at": "2025-08-13T05:51:44.733Z", "updated_at": "2025-08-13T05:51:44.733Z" } }}
See Also
Section titled “See Also” SAMA chat server API: Users All messengers and services that use instant messaging require minimal user identification in the system. We have developed a universal API...
DataBase Records Collection of complete objects stored in the database.