Appearance
Provider user update
PATCH
v1/ad/provider/user/:provider_id/:user_id
Request
name | necessary | type | default | describe |
---|---|---|---|---|
false | string | - | 邮箱(email) | |
first_name | false | string | - | 名(first name) |
last_name | false | string | - | 姓(last name) |
area_code | false | string | - | 国际区号(area code) |
phone | false | string | - | 手机(phone) |
upper_device_advancement | false | string | - | 上牙滴定值(upper device advancement |
lower_device_advancement | false | string | - | 下牙滴定值(lower device advancement) |
birth | false | string | - | 出生日期(birth date) |
sex | false | int | - | 性别:1男,2女(sex:1 man,2 woman) |
status | false | int | - | 性状态:0禁用,1正常(status: 0 disabled, 1 normal) |
weight | false | int | - | 体重(weight) |
-height_unit | false | string | - | 身高单位(height uint) |
height | false | int | - | 身高(height) |
-weight_unit | true | string | - | 体重单位(weight uint)) |
timezone | false | string | - | 时区(timezone) |
avatar | false | string | - | 头像(avatar) |
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
Url params:
v1/ad/provider/user/20221201092014WSUxccxp/54
Body of raw:
json
{
"sex": 1,
"status": 1,
"weight": 12,
"height": 23,
"timezone": "(GMT+08:00)Beijing"
}
{
"sex": 1,
"status": 1,
"weight": 12,
"height": 23,
"timezone": "(GMT+08:00)Beijing"
}
- 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": {}
}