Update User
PATCH
http://82.180.154.188:4352/users/<userId>
Last modified:2025-04-10 10:07:03
This endpoint allows an admin to update specific fields of a user's profile.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'http://82.180.154.188:4352/users/<userId>' \
--header 'Authorization: Bearer ' \
--form 'accountStatus="ACTIVE"'
Response Response Example
{
"status": "success",
"message": "user has been updated successfully!"
}
Request
Header Params
Authorization
stringÂ
required
Example:
Bearer {{JWT}}
Body Params multipart/form-data
name
stringÂ
optional
Example:
Mostafa Elsawy
email
stringÂ
optional
Example:
mostafa@gmail.com
password
stringÂ
optional
Example:
qwertyuiop
phoneNumber
stringÂ
optional
Example:
01025723911
location
array[string]
optional
Example:
["<longitude>","<latitude>"]
role
stringÂ
optional
ADMIN
, USER
, or DELIVERY
Example:
ADMIN
accountStatus
stringÂ
optional
ACTIVE
, or FREEZE
Example:
ACTIVE