Skip to content

Provider member add

POST v1/ad/providerMember

Request

namenecessarytypedefaultdescribeui
provider_idtruestring-机构id(provider id)
first_nametruestring-名(first name)
last_nametruestring-姓(last name)
roletrueint-角色:1机构提供者,2机构管理员,3医生(role:1provider owner,2provider admin,3doctor)
emailtruestring-邮箱(email)
npiflasestring-执照编号(License Number)
avatarflasestring-头像(avatar)
phoneflasestring-电话号码(phone)
area_codeflasestring-国际区号(area code)
sexflaseint-性别:1男,2女(sex:1 man,2 woman)
has_virtual_userfalsetrue-是否包含虚拟用户(Whether to include virtual users)

Response data struct

namenecessarytypedefaultdescribeui
codetrueint-错误码(error code)
messagetruestring-错误信息(error message)
causetruestring-错误原因(error cause)
detailstrueobject-详情(details)

Example

  • Body of raw:
json
{
    "provider_id": "20220101000000",
    "first_name": "test",
    "last_name": "1",
    "role": 3,
    "email": "user@email.com",
    "npi": "1223433434",
    "avatar": "",
    "phone": "",
    "area_code": "+86",
    "sex": 1,
    "has_virtual_user": true
}
{
    "provider_id": "20220101000000",
    "first_name": "test",
    "last_name": "1",
    "role": 3,
    "email": "user@email.com",
    "npi": "1223433434",
    "avatar": "",
    "phone": "",
    "area_code": "+86",
    "sex": 1,
    "has_virtual_user": true
}
  • Header:
keyvalue
x-api-keyyour's key value
  • Response body:
json
{
    "code": 0,
    "message": "Success",
    "cause": "",
    "details": {}
}
{
    "code": 0,
    "message": "Success",
    "cause": "",
    "details": {}
}