Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

examples for groups api

ulferts221529cd3267
diff --git a/docs/api/apiv3/paths/group.yml b/docs/api/apiv3/paths/group.yml
index 8d575754d16..85b2920ac32 100644
--- a/docs/api/apiv3/paths/group.yml
+++ b/docs/api/apiv3/paths/group.yml
@@ -196,7 +196,7 @@ patch:
errorIdentifier: urn:openproject-org:api:v3:errors:NotFound
message: The requested resource could not be found.
description: |-
- Returned if the membership does not exist or the client does not have sufficient permissions
+ Returned if the group does not exist or the client does not have sufficient permissions
to see it.
**Required permission** If the user has the *manage members* permission in at least one project the user will be able to query all groups. If not, the user
@@ -224,7 +224,35 @@ patch:
headers: {}
tags:
- Groups
- description: Updates the given group by applying the attributes provided in the
+ description: |-
+ Updates the given group by applying the attributes provided in the
body.
+
+ Please note that the `members` array provided will override the existing set of members (similar to a PUT). A client thus
+ has to provide the complete list of members the group is to have after the PATCH even if only one member is to be added.
operationId: Update_group
+ requestBody:
+ content:
+ application/json:
+ schema:
+ example:
+ _links:
+ members:
+ - href: "/api/v3/users/363"
+ - href: "/api/v3/users/60"
+ name: The group
+ properties:
+ _links:
+ properties:
+ members:
+ type: arrray
+ items:
+ type: object
+ properties:
+ href:
+ type: string
+ type: object
+ name:
+ type: string
+ type: object
summary: Update group
diff --git a/docs/api/apiv3/paths/groups.yml b/docs/api/apiv3/paths/groups.yml
index dddbbec5639..60ff92d3d0f 100644
--- a/docs/api/apiv3/paths/groups.yml
+++ b/docs/api/apiv3/paths/groups.yml
@@ -149,4 +149,28 @@ post:
- Groups
description: Creates a new group applying the attributes provided in the body.
operationId: Create_group
+ requestBody:
+ content:
+ application/json:
+ schema:
+ example:
+ _links:
+ members:
+ - href: "/api/v3/users/363"
+ - href: "/api/v3/users/60"
+ name: The group
+ properties:
+ _links:
+ properties:
+ members:
+ type: arrray
+ items:
+ type: object
+ properties:
+ href:
+ type: string
+ type: object
+ name:
+ type: string
+ type: object
summary: Create group