Adds a member to a group or project.
POST
/v3/groups/{id}/membersAdds a member to a group or project.
请求参数
Path 参数
id
string
必需
The group ID
Body 参数application/x-www-form-urlencoded
user_id
integer <int32>
必需
The user ID of the new member
access_level
integer <int32>
必需
A valid access level (defaults: 30
, developer access level)
expires_at
string <date-time>
可选
Date string in the format YEAR-MONTH-DAY
示例代码
返回响应
成功(201)
HTTP 状态码: 201
内容格式: JSONapplication/json
Adds a member to a group or project.
数据结构
Updates a member of a group or project.
name
string
可选
username
string
可选
id
string
可选
state
string
可选
avatar_url
string
可选
web_url
string
可选
access_level
string
可选
expires_at
string
可选
示例
{
"name": "string",
"username": "string",
"id": "string",
"state": "string",
"avatar_url": "string",
"web_url": "string",
"access_level": "string",
"expires_at": "string"
}
最后修改时间: 1 个月前