Skip to main content
PATCH
Update a role mapping
Changes an existing group-to-role mapping. The group’s members are re-resolved as soon as the call returns. Run a preview first if the change could demote admins.
Availability: Cloud · Enterprise (self-hosted). Not available on the Community edition: a self-hosted deployment needs ENTERPRISE_ENABLED=true, otherwise the endpoint answers 403 with error.type: "enterprise_license_required".

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Path Parameters

id
string
required

Body

application/json
role
enum<string>
required
Available options:
admin,
member
priority
integer

Response

The mapping

id
string
groupId
string
groupName
string
role
enum<string>
Available options:
admin,
member
priority
integer

Lower wins when a member belongs to several mapped groups.

memberCount
integer
createdAt
string<date-time>
updatedAt
string<date-time>