Change a member's license or org role
PATCH/members/:membership_id
Changes the license, the org role or both. When only license is sent the org role follows
it like on the Members page: a Viewer license makes them an Org Viewer, and an Editor license
turns an Org Viewer into an Org Member. When only org_role is sent the license stays, so
making someone on a Viewer license an Org Admin or Org Member needs license: editor in the
same request, otherwise it answers with 400.
The API key acts as an Org Admin, so it can change other Org Admins, but the Org Owner's license and org role stay locked. A Workspace Owner can't become an Org Viewer.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 405
- 429
OK
The request is invalid.
The API key header is missing, or the API key is invalid, disabled or expired.
The API key is not allowed to do this, for example a key that isn't allowed to manage members.
The project or resource was not found.
The requested HTTP method is not allowed.
Too many requests sent with the same API key. Up to 10 requests can be sent within 1 second.