Share a project with a group
POST
/api/v4/projects/{id}/share
Shares a specified project with a group.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Request Body required
Section titled “ Request Body required ” Media type application/json
object
group_id
required
The ID of a group
integer
Example
1 group_access
required
The group access level
integer
expires_at
Share expiration date
string format: date
member_role_id
The ID of the Member Role to be assigned to the group
integer
Responses
Section titled “ Responses ”Created
Media type application/json
object
id
integer format: int64
project_id
integer format: int64
group_id
integer format: int64
group_access
integer
expires_at
string format: date
member_role_id
integer
Example
{ "id": 1, "project_id": 1, "group_id": 1, "group_access": 10, "expires_at": "2016-09-26", "member_role_id": 12}Bad request
Unauthenticated
Not found