LaundryAPI
  1. Users
LaundryAPI
  • Authentication
    • Signup
      POST
    • Resend Verification Code
      POST
    • Verify phone number
      POST
    • Login
      POST
    • Refresh Token
      GET
    • Forgot Password
      POST
    • Reset Password
      PATCH
    • Update Password
      PATCH
    • Logout
      POST
  • Users
    • Get Me
      GET
    • Update Me
      PATCH
    • Delete Me
      DELETE
    • Get All Users
      GET
    • Update User
      PATCH
    • Delete User
      DELETE
    • Create Delivery
      POST
    • Create Admin
      POST
  • Items
    • Get all items
      GET
    • Get Single item
      GET
    • Create item
      POST
    • Update item
      PATCH
    • Delete item
      DELETE
  • Orders
    • Get all orders
      GET
    • Single Order
      GET
    • Create Order
      POST
    • Delete order
      DELETE
    • Update Order
      PATCH
  • Branches
    • All Branches
    • Single Branch
    • branch's orders
    • Nearest Branches
    • Create Branch
    • update branch
    • Delete branch
  • Notifications
    • All Notifications
    • Create notification
    • Delete Notification
  • Banners
    • All Banners
    • Create Banner
    • Delete Banners
  • WhatsApp
    • initialize whatsapp Session
  1. Users

Update User

PATCH
http://82.180.154.188:4352/users/<userId>
Last modified:2025-04-10 10:07:03
🔒 Admin Only | Update a user's information.
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
An array of length 2 containing longitude and latitude
Example:
["<longitude>","<latitude>"]
role
string 
optional
it can onnly be ADMIN, USER, or DELIVERY
Example:
ADMIN
accountStatus
string 
optional
it can onnly be ACTIVE, or FREEZE
Example:
ACTIVE

Responses

🟢200OK
application/json
Body
status
string 
required
Previous
Get All Users
Next
Delete User
Built with