1. Home
  2. Docs
  3. API Documentation
  4. Clients
  5. ChangeServerToken

ChangeServerToken

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

This function gives you the option, in case you want, to change your login token.

Note : the login token must include only letters from the English language.

Roles Required: Admin.

Request Syntax

{

"apiKey": "string",

"token": "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 :

token

Parameter Usage and Options :

The login token you wish to use.

Type :

String

Is it Optional ? :

No.


Successful Response

{
“Error”: 0,
“Function”: “ChangeServerToken”,
“Data”: “Update”
}

Errors and their Possible Causes

{“Error”: 1, “Function”: “ChangeServerToken”, “Data”: “Not valid token”} – might appear in cases when the desired Server Token is not as requested, must be in the English language letters.

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