Set a member's roles in a workspace
Replace a member’s roles in a workspace with the roles given, and return the member. The
member’s current sessions must reauthorize, so the new roles apply immediately. The member
may still be INVITED. The workspace and the member are identified by the path parameters
alone. The x-hh-workspace-id header does not participate.
Each role must be one the organization’s roles manifest defines for workspaces, which are the roles the HoneyHive app offers there. Any other role is refused with 400, including one a manifest change removed, so writing back roles read before such a change can fail. When the organization has no valid roles manifest in force, the roles cannot be checked and the request is refused with 409.
Available on self-hosted deployments that do not enable an SSO group scheme. Elsewhere this operation returns 404. An API key that carries a membership permission can carry no permission other than the roles and membership permissions, and is created on an organization.
Authorizations
Path Parameters
Body
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
11