LaundryAPI
  1. Authentication
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. Authentication

Update Password

PATCH
http://82.180.154.188:4352/auth/updatepassword
Last modified:2025-04-08 11:33:37
This endpoint allows users to update their password. To use this endpoint, you must be logged in and provide your current password for verification, along with the new password. Upon a successful request, a new access token will be generated and returned.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'http://82.180.154.188:4352/auth/updatepassword' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "currentPassword": "<Your Current Password>",
    "password": "<Your new Password>"
}'
Response Response Example
{
    "status": "success",
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mbyI6eyJpZCI6IjY3YTkxMzc4M2QzOWYyYzgwMjliYjE4ZiIsImZ1bGxOYW1lIjp7ImZpcnN0TmFtZSI6Im1hamQiLCJsYXN0TmFtZSI6IndhaG9vYiIsIl9pZCI6IjY3YTkxMzc4M2QzOWYyYzgwMjliYjE5MCJ9LCJyb2xlIjoiVVNFUiJ9LCJpYXQiOjE3MzkxMzY0NDcsImV4cCI6MTczOTEzODI0N30.mRlTqBZSCP9V_0LPyNGUsJp6SAuuZmzyQ0AMXunLxY4"
}

Request

Header Params
Authorization
string 
required
Example:
Bearer {{JWT}}
Body Params application/json
currentPassword
string 
required
password
string 
required
Examples

Responses

🟢200Update Password
application/json
Body
status
string 
required
accessToken
string 
required
Previous
Reset Password
Next
Logout
Built with