Organizations
Invite User To Organization
Assigns a role to a user in an organization.
Args: organization_id (str): The ID of the organization. payload (InviteRequest): The payload containing the organization id, user email, and role to assign. workspace_id (str): The ID of the workspace.
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/organizations/{organization_id}/workspaces/{workspace_id}/invite
Path parameters
organization_idstring required
workspace_idstring required
Request body
Response
Successful Response
{"stackTrail":"paths:/organizations/{organization_id}/workspaces/{workspace_id}/invite:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}