Update a post
/api/posts/:postIdChange a draft or scheduled post.
- Send only the fields to change;
mediaandtargetsreplace the whole list (accounts the post keeps keep their results). optionsis merged per platform: eachoptions.<platform>you send replaces that platform's options as a whole,nullremoves them, and other platforms keep theirs.- Set
scheduledForto 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
scheduledForsubmits the draft for approval at that time (see posts_submit); an approver who setsscheduledForon a waiting post approves it.
- Key scope
- posts:write
- MCP tool
- posts_update
Headers
AuthorizationstringrequiredBearer <API key>. Create a key in the dashboard under API keys.
Path parameters
postIdstringrequiredPost id (UUID):
idfrom posts_list or posts_create
Body
targetsobject[]Replaces all targets. Accounts the post keeps also keep their results.
textstringPost text. Use
options.<platform>.textto vary it per platform.firstCommentstring | nullNew first comment; null removes it
linkUrlstring | nullLink to attach. Ignored by platforms whose
link.supportedis false.mediaobject[]Replaces all media
mediaFitpad | crop | noneHow media outside a platform's aspect ratio is fitted (
media.conversionin 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 itoptionsobjectPer-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
textandplacement);nullremoves them. Platforms you leave out keep their options.scheduledForISO 8601 | nullNew publish time; null turns the post back into a draft
Errors return { error: { code, message } }; every code is in Error codes.