添加项目成员
POST
https://open.teambition.com/api/project/member/add该接口用于添加项目的成员。
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Body 参数application/json
operatorId
string
操作人的用户 ID
projectId
string
项目 ID
members
array [object {2}]
必需
userId
string
用户 ID
role
integer
必需
成员角色,取值为: 0:成员 1:管理员 2:拥有者
示例
{
"operatorId": "5a28e2036176bbde...",
"projectId": "5e0d98527d161c00...",
"members": [
{
"userId": "5a28e2036176bbde...",
"role": 0
}
]
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
errorMessage
string
必需
result
object
必需
示例
{
"code": 200,
"errorMessage": "string",
"result": {}
}
最后修改时间: 3 年前