Skip to main content
PATCH
Set a member's roles in a workspace

Authorizations

Authorization
string
header
required

A fine-grained control-plane API key (values begin with hh_fgcp_). Project API keys used with the Data Plane API will not work here. Create one in the HoneyHive app under an organization's or workspace's Settings → API Keys.

Path Parameters

workspace_id
string
required

The unique identifier of the workspace

user_id
string
required

The member's user id, as the member list returns it. One person has the same user id in every organization, workspace and project

Body

application/json
role_names
string[]
required

The member's new roles at this scope, replacing the old ones. Each must be a role the organization's roles manifest defines for this scope's type, which are the roles the HoneyHive app offers for a member here. Any other role is refused with 400, including one a manifest change removed, so writing back roles read before a manifest change can fail

Minimum array length: 1
Minimum string length: 1

Response

Roles set

success
enum<boolean>
required
Available options:
true
data
object
required

One member of a scope