Magidoc

organization
Query

Fetch a single organization by id. In Pie, an organization is the top level of the hierarchy, containing one or more workspaces; workspaces in turn contain projects and recipes. Users become members of an organization by being added to one of its workspaces; organization admins are the only role assigned directly at the organization level. Use this query when you already know the organization id; use the organizations query to retrieve all organizations the current user belongs to.

The organization is returned when the caller is one of its admins or holds a membership in any of its workspaces; any other id — including a nonexistent one — fails with an error rather than returning null.

Arguments

#

id

Non-null

Organization id.

Response

#

Returns Organization .

Example

#