Skip to content

Provider user update

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

Request

namenecessarytypedefaultdescribe
emailfalsestring-邮箱(email)
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)
-height_unitfalsestring-身高单位(height uint)
heightfalseint-身高(height)
-weight_unittruestring-体重单位(weight uint))
timezonefalsestring-时区(timezone)
avatarfalsestring-头像(avatar)

Response data struct

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