auth

Update user by ID

Update a specific user by ID (superadmin only)

put/auth/users/{userId}

Path parameters

userIdstring required

Request body

firstNamestring
lastNamestring
passwordstring password

Current password for verification

newPasswordstring password

New password (if changing)

profileImagestring binary

New profile image file

deleteProfileImageboolean

Flag to delete current profile image

Response

Operation successful

successboolean required
msgstring required
dataobject

Response payload (varies by endpoint)

Example response

{
  "success": true,
  "msg": "Operation completed successfully"
}

Changes