Magidoc

workspace
Query

Returns a single Workspace by id, if the calling user is permitted to view it. A Workspace sits between Organization and Projects/Recipes in Pie's hierarchy: an Organization contains one or more Workspaces, and each Workspace contains its own Projects, Recipes, Stacks, SlicesLists, and members. Workspaces are typically used to separate teams, departments, or client-facing work within a single Organization.

The Workspace is returned when the caller has a membership (WorkspaceUser record) in it or is an admin of its Organization; any other id — including a nonexistent one — returns null rather than an error.

Use this query when the caller has a Workspace id and needs the Workspace's detail (name, members, permissions, etc.). See workspaces on the Organization type for listing all Workspaces in an Organization, and the various workspaceId arguments on queries like projects, recipes, stacks, and slicesLists for filtering content to a specific Workspace.

Arguments

#

id

Non-null

Workspace id.

Response

#

Returns Workspace .

Example

#