Update the real name of the distribution staff interface
Update the real name information of the distributor, used to modify the real name authentication information in the distributor's account.
Points to note
- The API uses the POST method and requires data to be submitted in application/ format
- You need to log in as a user before you can call this interface
- Only users with a distributor identity can update their real name
- The update of the real name may require real-name authentication verification
Request address
{域名地址}/api/retailer/update
Description:{域名地址}Replace it with your domain name, such ashttps://en.anqicms.com/api/retailer/update
Request Syntax
POST {域名地址}/api/retailer/update
Content-Type: application/json
Request Headers
This interface also involves common request headers. For more information, please refer toCommon Request Headers (Common Request Headers).
Request parameters
| Field name | Type | Required | Description |
|---|---|---|---|
| real_name | string | No | Distributor's real name, if not provided, this item will not be updated |
Response header
This interface only involves public response headers. For more information, please refer toCommon Request Headers (Common Request Headers).
Return parameters
| Field name | Type | Description |
|---|---|---|
| code | int | Error code |
| msg | string | Error description |
Usage Example
Request example
POST /api/retailer/update HTTP/1.1
Host: www.anqicms.com
Content-Type: application/json
{
"real_name": "张三"
}
Response Example
{
"code": 0,
"msg": "保存成功"
}
error code
| Error code | Description |
|---|---|
| 0 | OK |
| -1 | Error, the reason is indicated in msg |
| 1001 | Not logged in |
| 1002 | Not authorized |
| 200 | API request OK |