Skip to content

content_posts_detach_media

Remove media assets from a post, keeping the order of the rest.

Tool

content_posts_detach_media

Remove media assets from a post, keeping the order of the rest.

Remove media assets from a post, keeping the order of the rest. Like any edit, it produces a new version and returns an approved post to pending_approval.

Behavior

HTTP
POST /content/posts/:id/media/detach

Arguments

NameTypeRequiredDescription
idstringThe post id.
mediaIdsarrayMedia asset ids to remove from the post.

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

Remove media assets from a post, keeping the order of the rest.

When to use

Remove media assets from a post, keeping the order of the rest. Like any edit, it produces a new version and returns an approved post to pending_approval.

Example

Ask your agent something like this:

Remove media assets from a post, keeping the order of the rest.

The agent will invoke content_posts_detach_media with these arguments:

{
  "id": "<id>",
  "mediaIds": "<mediaIds>"
}

Esc

Start typing to search the docs.

navigateselect