添加企业成员
POST
https://open.teambition.com/api/org/member/add该接口用于批量添加企业成员。
请求参数
Header 参数
Content-Type
string
可选
示例值:
application
Body 参数application/json
operatorId
string
操作人的用户 ID
orgId
string
企业 ID
members
array [object {2}]
必需
userId
string
用户 ID
role
integer
可选
成员角色,取值为: 0:成员 1:管理员 2:拥有者
示例
{
"operatorId": "5a28e2036176bbde...",
"orgId": "50c32af35a87e6b2...",
"members": [
{
"userId": "5a28e2036176bbde...",
"role": 0
}
]
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
返回码,200 表示成功
errorMessage
string
必需
调用失败时的错误信息
result
array[object (result1) {14}]
必需
birthday
null
出生日期
city
string
工作地点(城市)
country
string
工作地点(国家)
email
string
电子邮箱
entryTime
null
入职时间
isDisabled
integer
可选
成员账号是否被停用:0 启用,1 停用
memberId
string
成员ID
name
string
成员名称
phone
string
联系电话
province
string
工作地点(省份)
role
integer
可选
成员角色,取值为: 0:成员 1:管理员 2:拥有者
staffType
string
员工类型
title
string
职位
userId
string
用户 ID
示例
{
"code": 200,
"errorMessage": "",
"result": [
{
"birthday": null,
"city": "",
"country": "",
"email": "",
"entryTime": null,
"isDisabled": 0,
"memberId": "5a28e2036176bbde...",
"name": "",
"phone": "",
"province": "",
"role": 2,
"staffType": "",
"title": "",
"userId": "5f5062f395bc466c98..."
}
]
}
最后修改时间: 2 years ago