Update Group Member Role
Updates the role of a user who was explicitly added to a group (a group_members row, shown as access_type: "group" by GET /api/v1/groups/{group_id}/members). Accepts either the coarse role (admin/viewer) or a role_id: a system role or one of your organization’s custom roles (see GET /api/v1/roles). Provide exactly one. Requires a global API key.
Organization members are out of scope: their access to every group in the org comes from their organization role, so a group-level write would not change what they can do. Targeting one returns 409; use PATCH /api/v1/organizations/members/{user_id} instead. The API key’s own user cannot be modified. There is no last-admin restriction at group scope: a group’s only admin can be demoted, since organization admins retain admin access to every group in the organization.
Roles other than admin and viewer are honored for access but are not yet rendered in the dashboard. A role_id such as Editor or Billing Manager grants that role’s real permissions on every website in the group, but the dashboard’s group member list currently collapses any non-admin role to “Viewer”. Prefer admin / viewer at group scope when a customer administrator also needs to see the assigned role.
Path Parameters
The unique identifier of the group
The unique identifier of the target user
Body
Request body for updating a group member's role. Provide exactly one of role or role_id.
Coarse role to assign. Mutually exclusive with role_id.
admin, viewer "viewer"
Assign any role by ID: a system role or one of your organization's custom roles (see GET /api/v1/roles). Mutually exclusive with role. Returns 404 if the role does not exist or belongs to another organization. System role IDs are GUID-shaped sentinels (e.g. 00000000-0000-0000-0000-000000000001), not RFC 4122 UUIDs. At group scope, roles other than Admin and Viewer are honored for access but are displayed as "Viewer" in the dashboard's group member list.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"789e0123-e89b-12d3-a456-426614174000"