1. Home
  2. Docs
  3. API Documentation
  4. Users
  5. ChangePassword

ChangePassword

Route: https://api.kayran.live/ChangePassword

You can use this function to change your own password.

Roles Required: Admin, User and Private User.

Request Syntax

{
    "apiKey": "String",
    "newPassword": "String",
    "oldPassword": "String"
}

Request Parameters

Parameters being used in the Request

Parameter Name :

apiKey

Parameter Usage and Options :

Your Kayran given API Key.

How do I get it ? :

Located in the “Profile” section.

Note : by default, the “API Status” is enabled, unless, the Admin has disabled it in the “Server Settings” section.

Type :

String

Is it Optional ? :

No.


Parameter Name :

newPassword

Parameter Usage and Options :

The password you wish to change to.

Type :

String

Is it Optional ? :

No.


Parameter Name :

oldPassword

Parameter Usage and Options :

The password you wish to change.

Type :

String

Is it Optional ? :

No.


Successful Response

{
    "Error": 0,
    "Function": "ChangePassword",
    "Data": "User Update"
}

Errors and their Possible Causes

For more information, please refer to the General Errors section.