Workspaces

Assign Role To User

Changed on

Assign a role to a user in a workspace.

Args: payload (UserRole): The organization id, user email, and role to assign. workspace_id (str): The ID of the workspace.

post/workspaces/{workspace_id}/roles

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/workspaces/{workspace_id}/roles
  • Auth
    API key in header Authorization

Path parameters

workspace_idstring required

Request body

emailstring required
rolestring nullable
organization_idstring required

Response

Successful Response

unknown required

Changes