Reset Password


The reset password request sets the password to the new password if the pin is equal to the one sent in the email.

The userspace parameter is typically selected by the program, and not by the user, and is not changed during the program’s lifetime.
A good practice is to choose a userspace name that is unique for the device on which the program is running, for example:

iphone-<username>

Having such a name helps to analyze server information.

Resource

POST /me/reset_password

Parameters

None

Response

None

Context

Authorization

Guest

Errors

HTTP code Xelion code Description

400

10002

no username specified

10003

no new password specified

10003

no pin specified

10203

password requirements not met

401

10004

wrong username, password and tenant combination

10009

login failed: server error

500

11000

A server error occurred. See error message for more information.

Example

Request
POST https://xelion.nl/api/v1/master/me/reset_password
Payload
{
        "userName":  "arnon",
        "newPassword":  "arnons secret",
        "pin":    "340502",
        "userSpace": "iphone-arnon"
}