ProjectsProject members
Update a project member
PATCH
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.
sessioncookie
gamma.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.
projectId*stringThe project's id.
projectMemberId*stringapplication/json- body
role?stringValue in
"admin""member"profileId?|null clears it: no content rights, only the access level.
OK.
application/json- 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" }}