Change a draft post
postkey_update_postPostkey: Changes a post that is not scheduled or published yet. Its type (image, video, text, story) cannot change: for another type, postkey_delete_post and make it again with postkey_create_post. Only the fields you send change, and each one replaces what was there (an empty list removes all media or all accounts; to add one file use postkey_attach_library_item). A post that waits for approval goes back to a draft when you change it: schedule it again. A post with can_edit false is refused conflict with the steps to take: a scheduled one, or one already sent to the platform as a draft, needs postkey_unschedule_post first; a published one cannot be changed at all. Do not make a new post with postkey_create_post instead unless the person asks for a copy. postkey_attach_library_item is refused the same way. An unknown post_id is refused not_found.
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": {
"post_id": "<post_id>"
},
"name": "postkey_update_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | An internal title only the team sees. Never published. At most 200 characters. | |
| caption | No | The caption published with the post, at most 5,000 characters. Each platform's own length limit is checked when it is scheduled. | |
| keyword | No | The call-to-action word people comment to get a DM, for example "GUIDE". Letters, digits, _ and - only, at most 40. It is a label on the post; the DM itself is sent by a live automation with the same keyword (postkey_create_automation). | |
| post_id | Yes | The post id (a UUID) from postkey_list_posts or postkey_create_post. | |
| link_url | No | The link the keyword automation hands out, https://... | |
| visibility | No | YouTube only: who can see the video. "public" (default); "unlisted": anyone with the link, not in search or on the channel; "private": only the channel. | |
| youtube_title | No | YouTube only: the video's title, at most 100 characters. Left out: YouTube uses the first 100 characters of the caption. An empty string removes it. | |
| library_item_ids | No | The post's media in order: ids from postkey_list_library or postkey_finish_upload. Up to 10 (a story takes exactly 1). Sending it replaces the list; an empty list removes all. | |
| linkedin_post_as | No | LinkedIn only, keyed by LinkedIn social account id (in social_account_ids): who it posts as. "me", company pages by name or urn (post_as in postkey_list_social_accounts), or both: each is its own post and counts once in posts_per_week. { "<id>": ["me", "Acme Corp"] }: the person and the page. null: back to "me" only. A page it does not manage is refused with the ones it can use. | |
| trial_graduation | No | Only with instagram_trial_reel true. "manual" (default): the person shares it to their followers in Instagram; "by_performance": Instagram shares it by itself if it does well. | |
| platform_settings | No | Each platform's own settings, keyed by platform, merged key by key into what the post has (null removes one). For example { "tiktok": { "privacy_status": "private", "allow_duet": false }, "instagram": { "share_to_feed": false, "first_comment": "Link in bio" }, "linkedin": { "first_comment": "..." }, "reddit": { "subreddit": "videography", "title": "..." } }. postkey_guide topic platforms lists every setting and what it takes. An unknown platform or setting is refused invalid_arguments. | |
| social_account_ids | No | The social accounts to post to: ids from postkey_list_social_accounts (active, not needs_reconnect). Up to 30. Sending it replaces the list; an empty list removes all. | |
| instagram_trial_reel | No | Instagram only, one video, not a Story. true: post it as a TRIAL reel, shown first to people who do not follow the account and not on the profile grid. false takes that off. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false: refused (isError; code, message, guide_topic, url); no change. | |
| note | No | Present when the post was taken out of Approvals by the change. | |
| status | No | The post's status after the save. | |
| post_id | No | The post id. | |
| warnings | No | Things to fix before it can be sent. | |
| published | No | Always false. |