PATCH /org/members/{user_id}
Change a member's role. See the permissions matrix for which roles can assign what.
- Owner can change anyone's role, including promoting members to
"owner"or demoting other owners. An org can have multiple owners. Only constraint is at least one at all times. - Admin can flip members between
"member"and"viewer"only. Anything that touches"admin"or"owner"is owner-only.
Request body
{
"role": "admin"
}| Field | Type | Notes |
|---|---|---|
role | OrgRole | New role. |
Response 200: the updated OrgMembership.
Errors: 400 (invalid role), 403 (not allowed to assign that role), 404 (user isn't a member), 409 LastOwner (would leave the org with zero owners).
Example
curl -X PATCH "$SEISMIC_ORCHESTRATION_URL/v0/org/members/ad22…" \
-H "Api-Key: $SEISMIC_ORCHESTRATION_API_KEY" \
-H "content-type: application/json" \
-d '{ "role": "admin" }'