Appearance
Provider admin update base info
PATCH
v1/ad/admin/provider
Request
name | necessary | type | default | describe |
---|---|---|---|---|
first_name | false | string | - | 名(first name) |
last_name | false | string | - | 姓(last name) |
avatar | false | string | - | 头像(avatar) |
sex | false | int | - | 性别:1男,2女(sex:1 man,2 woman) |
phone | false | string | - | 电话号码(phone) |
area_code | false | string | - | 国际区号(area code) |
language | false | string | - | 语言:en_us,zh_cn(language:en_us,zh_cn) |
Response data struct
name | necessary | type | default | describe |
---|---|---|---|---|
code | true | int | - | 错误码(error code) |
message | true | string | - | 错误信息(error message) |
cause | true | string | - | 错误原因(error cause) |
details | true | object | - | 详情(details) |
Example
- Body of raw:
json
{
"first_name": "test",
"last_name": "wu",
"avatar": "https://xxx/20220921075003YX6ZJC1Z.jpg",
"sex": 1,
"phone": "13902200222",
"area_code": "+86",
"language": "zh_cn"
}
{
"first_name": "test",
"last_name": "wu",
"avatar": "https://xxx/20220921075003YX6ZJC1Z.jpg",
"sex": 1,
"phone": "13902200222",
"area_code": "+86",
"language": "zh_cn"
}
- Header:
key | value |
---|---|
x-api-key | your's key value |
- Response Body
json
{
"code": 0,
"message": "Success",
"cause": "",
"details": {}
}
{
"code": 0,
"message": "Success",
"cause": "",
"details": {}
}