Skip to main content
PUT
Set a group's role
Takes a managing key (oc_key_...) or a signed-in session. See Editions for what OneCLI Cloud adds. Everyone in this group from the directory gets this role: admin or member, never owner. Applied at once. Admins and owners.
Availability: OneCLI Cloud only. A self-hosted deployment does not serve this endpoint and answers 404 with error.code: "not_found".

Authorizations

Authorization
string
header
required

A managing key (oc_key_...), an older API key (oc_...), or a signed-in session.

Path Parameters

id
string
required

The group id.

Required string length: 1 - 64

Body

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

Response

The group's role after the change.

groupId
string
required
role
enum<string> | null
required

null: the group sets no role.

Available options:
admin,
member,
null