Page tree
Skip to end of metadata
Go to start of metadata

You can change a user's password by sending the POST request to the following URL: /user/{user_id}/password.

Permission to run the request: Account Owner, Administrators, Department Administrators.

Department Administrators may change passwords only of users belonging to departments they manage and their daughter departments.

 

Request Headers

ParameterDescription
X-Auth-Account-Url (required)Base URL of the account, e.g. http://myaccount.ispringlearn.com
X-Auth-Email (required)Login of Account Owner, Administrator, or Department Administrator.
X-Auth-Password (required)Password of Account Owner, Administrator, or Department Administrator.
user_id (required)

ID of a user whose password you would like to change.

Password complexity can be set up in the Settings section.

 

Possible Response Codes

CodeTextDescription
200Successful operationA user's password has been changed.
400Bad RequestA request error.
401UnauthorizedAn authorization error.
403Permission DeniedThe user doesn't have enough permissions to update another users' passwords, For instance, Department Administrators can't change passwords of users belonging to a department they don't manage.

 

Sample Request

POST /user/43f4a84c-6280-11e9-8686-a6210366ac32/password HTTP/1.1
Host: api-learn.ispringlearn.com
X-Auth-Account-Url: https://myaccount.ispringlearn.com
X-Auth-Email: email@email.com
X-Auth-Password: password
Content-Type:application/xml

<?xml version="1.0" encoding="UTF-8"?>
<request>
	<password>string</password>
</request>

Sample Response

HTTP/1.1 200 OK
Connection: close
  • No labels