Edit Published Post
edit_published_postReplaces the text of a published social post on its platform, right away. The new text goes live as soon as the call returns; it does not go back through review, and it is recorded as a new rev approved by you. Only people who can approve the channel's posts may use it: on a channel set to admins only (approverRole: approver), workspace admins. Text only: media, the first comment, YouTube and Pinterest titles, and X thread replies stay as posted. Works on LinkedIn, Facebook, X, YouTube (the description) and Pinterest (the description, if Pinterest lets apps edit pins). X: single posts only, within 1 hour of going live, up to 5 edits, and the account needs X Premium; X gives the edited post a new address, returned as url. Instagram and TikTok are refused: edit those in their apps. The text gets the same checks as save_post (the channel's character limit and blocked phrases); blank text is refused. Links go out as written, so keep the tracking links from the live text. Drafts, posts not yet published, website pages and external posts are refused, and so is a second edit of the same post while one is in progress. A refusal changes nothing in Mark or on the platform, and the error names the platform and its reason. Two errors are different: if the error says Mark couldn't confirm the platform took the edit, check the live post before calling again; if it says the live post changed but Mark didn't record it, call again with the same text. Related: get_post, save_post, delete_post.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"postId": "<postId>",
"body": "<body>"
},
"name": "edit_published_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The post's full new text. Replaces the live text. | |
| postId | Yes | The published social post to edit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rev | Yes | The new rev, recorded as approved by you. | |
| url | Yes | The live post after the edit; new for X. | |
| postId | Yes | ||
| channel | Yes |