Endpoints
Assign Role To User
Assigns a role to a user in a workspace.
Args: payload (UserRole): The payload containing the organization id, user email, and role to assign. workspace_id (str): The ID of the workspace. request (Request): The FastAPI request object.
Returns: bool: True if the role was successfully assigned, False otherwise.
Raises: HTTPException: If the user does not have permission to perform this action. HTTPException: If there is an error assigning the role to the user.
POST
/
workspaces
/
{workspace_id}
/
roles
Authorizations
Authorization
string
headerrequiredPath Parameters
workspace_id
string
requiredBody
application/json
email
string
requiredorganization_id
string
requiredrole
enum<string>
An enumeration.
Available options:
owner
, viewer
, editor
, evaluator
, workspace_admin
, deployment_manager
Response
200 - application/json
The response is of type boolean
.
Was this page helpful?