Dokumentation
ReferenzProjects

Change the permission of a project member.

PATCH
/projects/{projectId}/members/{memberId}

Set the permission of one member to view, edit or manage. Managers name further managers this way; a project may have several, and they share it with equal rights.

A project always keeps a manager. Lowering the permission of the last membership with manage is refused with 400, even when the caller lowers its own; name another manager first.

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
memberId*string

The id of the membership, as returned by GET /projects/{projectId}/members.

Formatuuid

Request Body

application/json
  1. body

Request body for changing the permission of a project member.

permission*string

The new permission; see ProjectMember.

Value in"view""edit""manage"

Response Body

The member with its new permission.

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 PATCH "https://example.com/projects/0b7c2f4e-5a61-4d3b-9f0e-6c1d2a3b4c5d/members/4a1d7e20-3c5b-4f8a-9e2d-7b6c5a4d3e2f" \  -H "Content-Type: application/json" \  -d '{    "permission": "manage"  }'
{  "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"}