Change a member's organisation role
PATCH
consoleSessioncookie
vg_session<token>The console's session cookie, set when you sign in. Every operation accepts it, at the role the operation names.
orgId*stringAuthorised orgId; the server must verify organisation/project ownership before any read.
Length
1 <= lengthuserId*stringA member's user id; one outside the named organisation is not_found.
Length
1 <= lengthapplication/json- body
role*stringThe new organisation role.
Value in
"Admin""Member""Viewer"The member with their new role.
application/json- response
userId*stringThe member's user id.
email*stringThe member's sign-in email, case-folded.
Format
emailrole*stringOrganisation role.
Value in
"Admin""Member""Viewer"Example Request
curl -X PATCH 'https://example.com/api/v1/org/string/members/string' \ -H 'Content-Type: application/json' \ -d '{ "role": "Admin"}'Example Response
{ "userId": "string", "email": "user@example.com", "role": "Admin"}Was this page helpful?