Appearance
Provider user update batch
PATCH
v1/ad/provider/user/:provider_id/batch
Request
name | necessary | type | default | describe |
---|---|---|---|---|
user_id | true | array | - | 用户id(用户id) |
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 | false | int | - | 身高(height) |
timezone | false | string | - | 时区(timezone) |
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
{
"user_id": [
54
],
"first_name": "test1",
"last_name": "test last",
"area_code": "+86",
"phone": "13902200464",
"upper_device_advancement": "L2",
"lower_device_advancement": "L1",
"birth": "1992-01-02",
"sex": 1,
"status": 1,
"weight": 12,
"height": 23,
"height_unit":"",
"timezone": "Asia/Shanghai"
}
{
"user_id": [
54
],
"first_name": "test1",
"last_name": "test last",
"area_code": "+86",
"phone": "13902200464",
"upper_device_advancement": "L2",
"lower_device_advancement": "L1",
"birth": "1992-01-02",
"sex": 1,
"status": 1,
"weight": 12,
"height": 23,
"height_unit":"",
"timezone": "Asia/Shanghai"
}
- 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": {}
}