Add a member to a project.
Make a team group or a single person a member of the project, with the permission
view, edit or manage. For a group, the permission applies to everybody in it,
including people who join the group later.
The role in the tenant caps the permission. A user with the role viewer stays a
viewer in the project whatever permission they are given here, through a group or
personally; the membership is written as sent, and the cap applies when the rights are
derived.
Members belong to the tenant of the project. A person with the role light cannot be a
member, and a personal group cannot be named as userGroup: a person is named by user. The group of
all users of the tenant can be named; the project is then open to everybody in the
tenant, the role light excepted, with the permission given here.
Adding a group or person that is already a member is answered with 400 and changes
nothing; a permission is changed with PATCH /projects/{projectId}/members/{memberId}.
Requires project.manage, which only managers of the project hold.
apiKeyX-API-Key<token>API key issued in the Galilea settings.
projectId*stringThe id of the project, as returned by GET /projects.
uuidapplication/json- body
Request body for adding a member to a project. Names exactly one of userGroup and
user: a team group from GET /user-groups, or a single person from GET /users.
userGroup?stringID of a team group of the tenant or of the group of all its users, as returned by
GET /user-groups.
uuiduser?stringID of a single user of the tenant, as returned by GET /users. Galilea grants the
membership to the personal group of that user. A person with the role light cannot be a member.
uuidpermission*stringThe permission of the new member; see ProjectMember.
"view""edit""manage"The member was added.
application/json- response
One member of a project and the permission it holds. A member is a single person, a team group of the tenant, or the group of all users of the tenant; for a group, the permission applies to everybody in it. A person reached on several ways — personally and through one or more groups — holds the highest of these permissions, capped by their role in the tenant.
id*stringIdentifier of the membership, used to change or remove it.
uuidpermission*stringview opens the project and reads its documents, artifacts and memory; edit
additionally adds, renames and deletes documents and changes the memory; manage
additionally changes name, description and color, decides who is a member, and
deletes the project. Each permission contains the ones before it. A project always
has at least one member with manage.
"view""edit""manage"userGroup*The group the membership is granted to. A person is a member through their personal
group, which is why type tells a person from a team.
user?|For a personal membership the person, addressable in GET /users; null for a team group.
createdAt?stringWhen the membership was granted.
date-timecurl -X POST "https://example.com/projects/0b7c2f4e-5a61-4d3b-9f0e-6c1d2a3b4c5d/members" \ -H "Content-Type: application/json" \ -d '{ "permission": "edit" }'{ "id": "4a1d7e20-3c5b-4f8a-9e2d-7b6c5a4d3e2f", "permission": "edit", "userGroup": { "id": "7f3b2a10-11ef-4c2e-9a71-2b6d5c8e4419", "type": "team", "name": "Bauplanung" }, "user": null, "createdAt": "2019-08-24T14:15:22Z"}