Request: POST /user/{user_id}/password

Permissions to Run the Request

Account Owner, Account Administrators, Department Administrators, or custom roles

Department Administrators and users with a custom role can add users only to the departments they manage and their sub-departments.

 

Request Headers

HeaderDescription
X-Auth-Account-Url (required)The base URL of the account, e.g. http://myaccount.ispringlearn.com
X-Auth-Email (required)The login of Account Owner, Account Administrator, Department Administrator, or a user with a custom role.
X-Auth-Password (required)The password of  Account Owner, Account Administrator, or Department Administrator, or a user with a custom role.
ParameterDescription
user_id (required)

The ID of the user whose password you would like to change.

Password complexity rules can be set up in the Settings section.

Possible Response Codes


CodeTextDescription
200Successful operationThe 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