Magidoc

post
Query

Fetch a single post by id. In Pie, a post is a message attached to a project, a project slice, a task, a recipe, a recipe slice, or a recipe task, and other team members can reply to it. Posts have a type of "message", "issue", "idea", or "reply"; issues additionally carry a secondaryType of "Issue" or "Risk".

Access: the post is returned to its author, to its current owner, to callers with update permission on its Project (Project Admin, Stack Admin, or Workspace Admin), or — for Recipe-side posts — to callers with view access to the Recipe. Posts attached to a slice or task are readable through this query only by their author or owner. Other callers get a not_allowed error; an unknown id returns not_found. id is required at runtime despite the nullable schema typing.

Use this query when you already know the post id. To retrieve posts attached to a project or todo, request the posts field on those objects directly — slice types do not expose a posts field, so to read posts on a slice you must list the slice's todos and read posts from there.

Arguments

#

id

Response

#

Returns Post .

Example

#