Dokumentation
ReferenzProjects

Add a member to a project.

POST
/projects/{projectId}/members

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.

Authorization

apiKey
headerX-API-Key<token>

API key issued in the Galilea settings.

Path Parameters

projectId*string

The id of the project, as returned by GET /projects.

Formatuuid

Request Body

application/json
  1. 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?string

ID of a team group of the tenant or of the group of all its users, as returned by GET /user-groups.

Formatuuid
user?string

ID 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.

Formatuuid
permission*string

The permission of the new member; see ProjectMember.

Value in"view""edit""manage"

Response Body

The member was added.

application/json
  1. 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*string

Identifier of the membership, used to change or remove it.

Formatuuid
permission*string

view 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.

Value in"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?string

When the membership was granted.

Formatdate-time
curl -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"}