Pages in API reference

Posts

Update a post

PATCH/api/posts/:postId

Change a draft or scheduled post.

  • Send only the fields to change; media and targets replace the whole list (accounts the post keeps keep their results).
  • options is merged per platform: each options.<platform> you send replaces that platform's options as a whole, null removes them, and other platforms keep theirs.
  • Set scheduledFor to null to turn a scheduled post back into a draft.
  • To change the text of a published post, use posts_edit_published.
  • Returns the updated post. 404 POST_NOT_FOUND for an id that is not yours; 409 INVALID_STATUS_TRANSITION unless the post is a draft, scheduled or queued.
  • In approval mode, a key or member whose posts need approval changes only drafts, and scheduledFor submits the draft for approval at that time (see posts_submit); an approver who sets scheduledFor on a waiting post approves it.
Key scope
posts:write
MCP tool
posts_update

Headers

  • Authorizationstringrequired

    Bearer <API key>. Create a key in the dashboard under API keys.

Path parameters

  • postIdstringrequired

    Post id (UUID): id from posts_list or posts_create

Body

  • targetsobject[]

    Replaces all targets. Accounts the post keeps also keep their results.

  • textstring

    Post text. Use options.<platform>.text to vary it per platform.

  • firstCommentstring | null

    New first comment; null removes it

  • linkUrlstring | null

    Link to attach. Ignored by platforms whose link.supported is false.

  • mediaobject[]

    Replaces all media

  • mediaFitpad | crop | none

    How media outside a platform's aspect ratio is fitted (media.conversion in GET /api/platforms), e.g. Instagram feed 4:5 to 1.91:1, Reels, Stories and TikTok 9:16, and on Pinterest a carousel's later images to the first one's ratio. pad: bars around the whole frame (white on images, black on video); crop: the centre fills the frame; none: the ratio stays as uploaded (a platform that requires one may refuse it). Default: pad.

  • threadobject[]

    Replaces the thread; [] removes it

  • optionsobject

    Per-platform options to change. Each platform key you send replaces that platform's options as a whole (send every field you want to keep, e.g. both text and placement); null removes them. Platforms you leave out keep their options.

  • scheduledForISO 8601 | null

    New publish time; null turns the post back into a draft

Errors return { error: { code, message } }; every code is in Error codes.