Replace a scheduled post
replace_scheduled_postReplaces a pending scheduled post with a new one in a single call, for changing its time, text, or media. Posteady creates the new schedule first and cancels the original only after that succeeds. The input is the same as schedule_post, plus the original scheduledPostId and platform from list_scheduled_posts. accountIds must be exactly the original post's account, and the replacement must be the same kind of post (text, TikTok video or photo, Instagram, YouTube, or Facebook). Instagram, YouTube, Facebook, and TikTok replacements need a new requestId. If the new schedule fails, the original stays scheduled and replaced is null. If the original starts publishing before it can be canceled, the new schedule is canceled and POST_NOT_CANCELLABLE is returned. For X, the new schedule uses credits the same way as schedule_post, and the original's credits are refunded when it is canceled. Because the new schedule comes first, the organization needs enough credits for it; otherwise the call fails with INSUFFICIENT_CREDITS and the original stays scheduled. The replacement gets new scheduledPostIds. The target workspace is determined automatically from accountIds.
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": {
"accountIds": "<accountIds>",
"scheduledAt": "<scheduledAt>",
"scheduledPostId": "<scheduledPostId>",
"platform": "<platform>"
},
"name": "replace_scheduled_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| posts | No | Text posts to schedule. Required for text and TikTok modes; omit for Instagram, YouTube, or Facebook. If multiple, they are published as a thread chain at the scheduled time. Max 25 items. For X, links (http://, https://, www., and bare domains such as foo.io/path) are automatically removed from posts[0] before saving the schedule, unless xOptions.keepFirstPostLink is true. Replies in posts[1+] and other platforms keep their links. Character limits apply after removal; an empty first X post rejects the entire request with VALIDATION_ERROR. | |
| video | No | TikTok Business video: an uploaded mediaId and requestId UUID, one account and one caption, and explicit PUBLIC_TO_EVERYONE privacy. | |
| youtube | No | YouTube video: one account, a requestId UUID, an uploaded video mediaId, a title, optional description, privacyStatus public/unlisted/private, optional madeForKids, and an optional firstComment. Cannot be combined with posts, video, tiktokPhoto, or instagram. | |
| No | Facebook Page post: one account, a requestId UUID, explicit FEED/REELS/STORY content type, optional FEED/REELS message, and uploaded media IDs. STORY does not accept message. | ||
| mediaIds | No | Threads, X, and LinkedIn accounts: mediaIds from the media library (list_media, or uploaded media) attached to posts[0]. Threads takes 1–20 images or videos (2 or more make a carousel, and images and videos can be mixed): images no wider than 10:1, and MP4 or MOV videos of up to 1 GiB, 0.1–300 seconds long, up to 4096 pixels wide, and between 0.01:1 and 10:1 (width:height). X takes 1–4 images of up to 5 MiB each, or one MP4 or MOV video on its own of up to 512 MiB, 0.5–140 seconds long, 32–4096 pixels on each side, and between 1:3 and 3:1 (width:height). LinkedIn takes 1–20 images of up to 36,152,320 pixels each, or one MP4 or MOV video on its own of 75 KiB to 500 MiB, 3–1800 seconds long, and between 0.01:1 and 10:1 (width:height). With several platforms the smallest limit applies, and the whole request is rejected before anything is posted if an item does not fit. A video's length and dimensions are checked only when they can be read from the file; otherwise the platform may still reject the video while publishing. Replies in posts[1+] stay text; mediaIdsByPost attaches media to replies as well. Documents go in linkedinOptions.document, not here. Cannot be combined with the video (TikTok), tiktokPhoto, instagram, youtube, or facebook fields. | |
| platform | Yes | Platform of the scheduled post being replaced (shown in list_scheduled_posts). | |
| timezone | No | IANA timezone name (e.g. 'Asia/Seoul', 'America/New_York'). If omitted, the workspace default timezone is used. | |
| xOptions | No | X accounts only: community or subscribers-only options for the first post, and keepFirstPostLink to keep its links. | |
| No | Instagram media post: one account, a requestId UUID, FEED/REELS/STORIES content type, and 1–20 uploaded media IDs, with optional firstComment, commentsDisabled, collaborators, reelCover, and trialGraduationStrategy. Cannot be combined with posts, video, or tiktokPhoto. | ||
| accountIds | Yes | Account IDs to schedule the post for (from list_accounts). 1–5 accounts. Each must be a UUID. | |
| scheduledAt | Yes | Future ISO 8601 timestamp with timezone offset at which to publish (e.g. '2026-06-15T09:00:00+09:00'). Must be in the future. list_workspaces returns each workspace's timezone for converting local times such as 'tomorrow 10am'. | |
| tiktokPhoto | No | TikTok Business photo post: 1–35 uploaded image mediaIds in posting order (the first is the cover), a requestId UUID (a repeated requestId returns the same job), and a privacyLevel. Requires exactly one account and one caption in posts[0] (up to 4,000 characters). Cannot be combined with video, mediaIds, instagram, youtube, or facebook. | |
| workspaceId | No | Optional. The target workspace is determined automatically from accountIds; when given, it must match the accounts' workspace. | |
| mediaIdsByPost | No | Threads, X, and LinkedIn accounts: mediaIds for each post, in the same order as posts (mediaIdsByPost[i] goes on posts[i]; an empty list leaves that post as text). Each post follows the same limits as mediaIds (Threads 1–20 images or videos, X 1–4 images of up to 5 MiB each or one video on its own, LinkedIn 1–20 images of up to 36,152,320 pixels each or one video on its own), with up to 100 items in total and no more lists than posts. Replaces mediaIds when replies in a Threads or X thread need media; sending both is rejected. Cannot be combined with the video (TikTok), tiktokPhoto, instagram, youtube, or facebook fields. | |
| threadsOptions | No | Threads accounts only: options for the first post, such as a topic tag. | |
| linkedinOptions | No | LinkedIn accounts only: post visibility, a first comment (optionally with one image), a link preview card, and a document post (a document mediaId with a title). | |
| scheduledPostId | Yes | ID of the pending scheduled post to replace (from list_scheduled_posts). |