Gamma API

Update a project member

PATCH
/api/projects/{projectId}/members/{projectMemberId}

Their project role, profile, or both; at least one. 422 when the profile is archived or not the organization's.

Who may call it: Whoever manages the project: an owner, security admin or admin of its organization, or an admin of the project. API keys: no.

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

projectId*string

The project's id.

projectMemberId*string

Request Body

application/json
  1. body
role?string
Value in"admin""member"
profileId?|

null clears it: no content rights, only the access level.

Response Body

OK.

application/json
  1. response
member*
Example Request
curl -X PATCH 'http://localhost:3000/api/projects/string/members/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "member": {    "id": "string",    "memberId": "string",    "userId": "string",    "name": "string",    "email": "string",    "image": "string",    "role": "admin",    "profileId": "string",    "profile": {      "id": "string",      "name": "string",      "archived": true    },    "isGuest": true,    "company": {      "id": "string",      "name": "string"    },    "createdAt": "2019-08-24T14:15:22Z"  }}