Workspaces

Assign Role To User

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

Path parameters

workspace_idstring required

Request body

emailstring required
rolestring nullable
organization_idstring required

Response

Successful Response

{"stackTrail":"paths:/workspaces/{workspace_id}/roles:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

Changed in 3 of the 378 revisions of this API.24

    • ○

      api tag Workspaces added

      api-tag-added

    This revision also has 11 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    This revision also has 31 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • e3e84db4719821See the full diff
    • ●

      removed the optional property // from the response with the status

      response-optional-property-removed

    • ●

      removed the optional property // from the response with the status

      response-optional-property-removed

    • ○

      api tag Workspaces removed

      api-tag-removed

    This revision also has 651 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog