Skip to main content

Change Password

This API allows users to change their password. It is useful in cases where the password has expired or the user chooses to update their password. This API cannot be used to change the password if the user has forgotten the current one. 

🔑Header Parameters

HeaderTypeDescriptionExample
Content-TypestringSpecifies the format of the request body.application/json
x-api-keystringThe API key provided by SynapseWave for authentication.x-api-key

📦Request Body Schema

FieldTypeRequiredDescriptionExample/ENUM
user_idstringYesUnique Client code (UCC) assigned to the user.User123456
old_passwordstringYesThe current password of the user.oldPassword123!
new_passwordstringYesThe new password that the user wants to setnewPassword456!
api_keystringYesThe API key provided by SynapseWave for authentication.api-key
sourcestringYesSpecifies the application from which the user has logged in: WEBAPI (browser-based) or MOBILEAPI (mobile application).WEBAPI, MOBILEAPI

🟢Success Response - 200 OK

If the password change is successful the response will contain the following:

🧾Response Body Schema

FieldTypeDescriptionExample
statusstringStatus of the API Call, typically "success""success"
codestringResponse code indicating the result of the request"s-101"
messagestringA message confirming the password change."Password changed successfully."
put/authentication/v1/user/password