Groups are account-owned filing containers, not project roles or access grants. A group reference accepts a numeric ID or unambiguous exact name; use the ID if a name is ambiguous. A rename changes the display label without changing the group ID or project membership. All routes require Authorization: Bearer <token> and return 401 for a missing/invalid token.
| Method | Path | Input and response |
|---|---|---|
GET |
/api/v0/groups |
Returns this account's group page with groups and visible ungrouped projects. |
POST |
/api/v0/groups |
JSON {"name":"My group"}; on success 201 with {action:"created",group,projects:[]}. |
GET |
/api/v0/groups/<group> |
Returns the selected group entry or 404. |
PATCH |
/api/v0/groups/<group> |
JSON {"name":"New name"}; requires management of that group; returns {action:"renamed",group:{id,name}}. |
DELETE |
/api/v0/groups/<group> |
Requires management and human confirmation; confirmed response contains action:"deleted", group, ungrouped and hidden_projects. It does not delete projects. |
Use Content-Type: application/json for POST/PATCH and Authorization: Bearer <token> throughout. Invalid names return 400 invalid_group with field errors, ambiguous references 409, and a group managed by another account 403 group_managed_by_other. Deletion pins group ID, name and project IDs; a changed group/membership returns 409 stale_group instead of acting on new state. Observe the guarded action and list groups before retrying after a timeout. See group project filing for adding/removing a project without changing its access.