Edit a published post's text
POST
/api/posts/:postId/edit-publishedReplace the text of a published post on the platforms: every account where it is published, or only the given accountIds (from platformPosts[].accountId).
- Text only; media and links stay.
- Each account's result is in
platformPosts: an edited account'stextholds the new text, and an account the platform refused keeps its text withnotice(EDIT_NOT_SUPPORTEDon Instagram, Threads, TikTok, Bluesky and X, and on Facebook stories; the platform's own refusal otherwise). - Facebook edits only posts Ampost published; a Telegram caption under media stays limited to 1024 characters.
- YouTube and Pinterest replace the video or Pin description.
- YouTube edits and deletes share a budget of 10 a day per channel (3 on Free); past it the account gets
noticeRATE_LIMITED. - Call platforms_list for
editPublished.supportedper platform. - To change a draft or scheduled post, use posts_update. 404 POST_NOT_FOUND for an id that is not yours; 409 INVALID_STATUS_TRANSITION when no given account has it published.
- Key scope
- posts:write
- MCP tool
- posts_edit_published
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
textstringrequiredThe new text. It replaces the text only; media and links stay. Each platform's
text.maxLengthapplies.accountIdsstring[]Accounts to edit the post on (
platformPosts[].accountId). Default: every account where it is published.
Errors return { error: { code, message } }; every code is in Error codes.