You can change user's password by sending the POST request to the following URL: /user/<user_id>/password.
Permission to run the request: Account Owner, Administrator, Organization Administrator.
Parameter | Description |
---|
X-Auth-Account-Url (required) | Base URL of the account, e.g. http://myaccount.ispringlearn.com |
X-Auth-Email (required) | Administrator/Organization Administrator e-mail address. |
X-Auth-Password (required) | Administrator/Organization Administrator password. |
X-Password (required) | A new password for the specified user. |
A new password should include from 6 to 100 characters with one uppercase letter (A-Z) and a number (0-9).
After the request has been completed, the system returns a response with Code 200.
Possible Response Codes
Code | Text | Description |
---|
404 | Unknown user | User with the specified ID was not found. |
403 | Permission denied | You have no permissions to change password the specified user. |
200 | Ok | User's password has been changed. |
400 | Bad Request | The system failed to process the request, because the 'X-Password' value is not specified or invalid. |
Sample Request
POST /user/1/password HTTP/1.1
Host: api.ispringonline.com
X-Auth-Account-Url: http://myaccount.ispringlearn.com
X-Auth-Email: email@email.com
X-Auth-Password: password
X-Password: passwordV2
XML
Sample Response
HTTP/1.1 200 OK
Connection: close
XML