Route: https://api.kayran.live/ChangePasswordUser
You can use this function to change a particular user’s password.
Roles Required: Admin.
Request Syntax
{
"apiKey": "String",
"newPassword": "String",
"adminPassword": "String",
"id": 1
}
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 :
adminPassword
Parameter Usage and Options :
Password of the server’s admin.
Type :
String
Is it Optional ? :
No.
Parameter Name :
id
Parameter Usage and Options :
The ID of the user whose password you wish to change.
How do I get it ? :
Use the “GetUser” or “GetUsers functions, or, use the users table in the “Users” sub-section under the “Manage” section.
Type :
Integer
Is it Optional ? :
No.
Successful Response
{
"Error": 0,
"Function": "ChangePasswordUser",
"Data": "Update"
}
Errors and their Possible Causes
For more information, please refer to the General Errors section.