update_password

To update a user’s password, use the following method:

Copied!
svc=user/update_password&params={"userId":<long>,
				 "oldPassword":<text>,
				 "newPassword":<text>}

Parameters

The required parameters are marked with an asterisk (*).

Name Description
userId* User ID.
oldPassword* Old password.
newPassword* New password.

Response

Copied!
{}	/* an empty object if the execution is successful; if not, an error code */

Error codes

Error code Description
7 The user wasn’t found, or the current user doesn’t have rights to change the specified user, or the user’s password is immutable.
6 The password doesn’t match security requirements, or failed to update the password, or the current user wasn’t found.

If you find a mistake in the text, please select it and press Ctrl+Enter.