Update user information interface

API call address

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

illustrate:{域名地址}You need to replace it with your domain address, such ashttps://en.anqicms.com/api/user/detail

Calling methods

POST

Request parameters

Field name type Required illustrate
user_name string no username
real_name string no Real name
introduce string no User introduction
email string no Mail
Phone string no Phone number

Return parameters

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

Request data example

parameter value
user_name admin
real_name Secure CMS
email [email protected]

Return to the data example

{
  "code": 0,
  "msg": "保存成功"
}

Error code

Error code illustrate
0 OK
-1 Error, the error reason is indicated in msg
1001 Not logged in
1002 Unauthorized
200 API Request OK