Skip to content

Provider user update batch

PATCH v1/ad/provider/user/:provider_id/batch

Request

namenecessarytypedefaultdescribe
user_idtruearray-用户id(用户id)
first_namefalsestring-名(first name)
last_namefalsestring-姓(last name)
area_codefalsestring-国际区号(area code)
phonefalsestring-手机(phone)
upper_device_advancementfalsestring-上牙滴定值(upper device advancement
lower_device_advancementfalsestring-下牙滴定值(lower device advancement)
birthfalsestring-出生日期(birth date)
sexfalseint-性别:1男,2女(sex:1 man,2 woman)
statusfalseint-性状态:0禁用,1正常(status: 0 disabled, 1 normal)
weightfalseint-体重(weight)
heightfalseint-身高(height)
timezonefalsestring-时区(timezone)

Response data struct

namenecessarytypedefaultdescribe
codetrueint-错误码(error code)
messagetruestring-错误信息(error message)
causetruestring-错误原因(error cause)
detailstrueobject-详情(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:
keyvalue
x-api-keyyour's key value
  • Response body:
json
{
    "code": 0,
    "message": "Success",
    "cause": "",
    "details": {}
}
{
    "code": 0,
    "message": "Success",
    "cause": "",
    "details": {}
}