Skip to content

content_posts_update

Edit a post.

Tool

content_posts_update

Edit a post.

Edit a post. The edit is recorded as a new immutable version; an edit to an approved post returns it to pending_approval, because an approval binds to one specific text.

Behavior

HTTP
PATCH /content/posts/:id

Arguments

NameTypeRequiredDescription
idstringThe post id returned by content_posts_create.
textstringReplacement text, in markdown. Omit to keep the current text.
mediaarrayReplacement media list (replaces, never merges). Omit to keep the current media.

Response

FieldTypeAlwaysDescription
idstringPost id.
textstringThe current text of the post, in markdown.
mediaarrayMedia references attached to the current version.
authorstringIdentity id of whoever composed the post.
statusstringPost lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
createdAtstringISO-8601 creation time.
updatedAtstringISO-8601 time of the last change.
currentVersionintegerVersion number of the current text.
approvedVersionintegerThe version an approval binds to, or null. Cleared on every edit: approving one text never covers another.

Try it

Edit a post.

When to use

Edit a post. The edit is recorded as a new immutable version; an edit to an approved post returns it to pending_approval, because an approval binds to one specific text.

Example

Ask your agent something like this:

Edit a post.

The agent will invoke content_posts_update with these arguments:

{
  "id": "<id>"
}

Esc

Start typing to search the docs.

navigateselect