groups.md
1.06 KB
List project groups
Get a list of groups. (As user: my groups, as admin: all groups)
GET /groups
[
{
"id": 1,
"name": "Foobar Group",
"path": "foo-bar",
"owner_id": 18
}
]
Return values:
200 Okon success and list of groups401 Unauthorizedif user is not authenticated404 Not Foundif something fails
Details of a group
Get all details of a group.
GET /groups/:id
Parameters:
id(required) - The ID of a group
Return values:
200 Okon success and the details of a group401 Unauthorizedif user not authenticated404 Not Foundif group ID not found
New group
Creates a new project group. Available only for admin.
POST /groups
Parameters:
name(required) - The name of the grouppath(required) - The path of the group
Return valueS:
201 Createdon success and the newly created group400 Bad Requestif one of the required attributes not given401 Unauthorizedif user is not authenticated404 Not Foundif something fails