Magidoc

updatePost
Mutation

Updates an existing Post. Mutable fields are title, content, secondaryType, priority, open, and ownerId; omitted optional arguments are left unchanged. content is plain text. HTML is not rendered (tags would show up as literal text). A Post's type, its thread parent, and its container cannot be changed after creation. open is required on every call — pass the current value when not changing it; open: false records the close timestamp internally. Changing ownerId emails the new owner.

Permitted callers: the Post's author, its current owner, anyone with update permission on the Post's Project (Project Admin, Stack Admin, or Workspace Admin), or — for Recipe-side Posts — anyone with access to the Recipe. Returns the updated Post. id is required at runtime despite the nullable schema typing.

Arguments

#

content

Post body as plain text. Line breaks are kept. HTML is not rendered, so do not send HTML tags such as

or ; they would display as literal text.

id

open

Non-null

ownerEmail

Email address of the user the Post is assigned to, instead of ownerId. With an organization access token it must belong to a member of the token's organization.

ownerId

priority

Allowed values for priority: "High", "Medium", "Low".

secondaryType

Allowed values for secondaryType: "Issue", "Risk".

title

Response

#

Returns Post .

Example

#