Site icon RocketCOMS Developer Center

Update User Password

Update User Password

Update a RocketCOMS Portal user’s password.

Endpoint

PATCH /v1/auth/password

Authorization Header

Authorization: Bearer <access_token>
or
Authorization: Basic <encodedString>
where <encodedString> is your <api-key>:<api-secret> string encoded using Base64 encoding

Request Body

oldPassword  REQUIRED

string, max length: 255, min length: 0

Current password.

newPassword  REQUIRED

string, max length: 255, min length: 0

pattern: ^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[!@#?]).{8,20}$

New password. The password must contain:

  • a minimum of 8 characters
  • uppercase and lowercase letters
  • at least one numeric character
  • at least one of the following special characters: ! @ # ?

confirmPassword  REQUIRED

string, max length: 255, min length: 0

Re-enter the new password.

Returns

If successful, returns 200 Password updated.

SAMPLE REQUEST

				
					{
  "oldPassword": "Abcd123!",
  "newPassword": "jmnH78@ltn",
  "confirmPassword": "jmnH78@ltn"
}
				
			

SAMPLE RESPONSE

				
					{
  200 Password updated
}
				
			
Exit mobile version