Modify user password interface

API call address

{域名地址}/api/user/password

illustrate:{域名地址}You need to replace it with your domain address, such as/api/user/password

Calling methods

POST

Request parameters

Field name type Required illustrate
old_password string yes Old Password
password string yes New Password

Return parameters

Field name type illustrate
code int Error code
msg string Error Cause Description

Request data example

parameter value
old_password 123456
password 654321

Return to the data example

{
    "code": 0,
    "msg": "密码修改成功"
}

Error code

Error code illustrate
0 OK
-1 Error, the cause of the error is pointed out in msg
1001 Not logged in
1002 Unauthorized
200 API request OK