Posteady
Posteady Docs
User guideDeveloper guidesAPI referenceMCP
API referenceScheduling

Replace several scheduled posts

Replace up to 50 scheduled posts in one request, each with its own new content and time.

POST
/api/v1/scheduled-posts/replace
curl -X POST "https://example.com/api/v1/scheduled-posts/replace" \  -H "Content-Type: application/json" \  -d '{    "requestId": "77777777-7777-4777-8777-777777777777",    "items": [      {        "scheduledPostId": "55555555-5555-4555-8555-555555555555",        "platform": "threads",        "accountIds": [          "11111111-1111-4111-8111-111111111111"        ],        "posts": [          "Monday tip: plan the week\'s posts in one sitting, then batch the visuals."        ],        "scheduledAt": "2027-01-04T09:00:00+09:00"      },      {        "scheduledPostId": "99999999-9999-4999-8999-999999999999",        "platform": "threads",        "accountIds": [          "11111111-1111-4111-8111-111111111111"        ],        "posts": [          "Wednesday tip: reply to every comment in the first hour."        ],        "scheduledAt": "2027-01-06T09:00:00+09:00"      }    ]  }'
{  "requestId": "77777777-7777-4777-8777-777777777777",  "items": [    {      "index": 0,      "status": "replaced",      "original": {        "scheduledPostId": "55555555-5555-4555-8555-555555555555",        "platform": "threads"      },      "results": [        {          "accountId": "11111111-1111-4111-8111-111111111111",          "provider": "threads",          "username": "your_brand",          "success": true,          "scheduledPostIds": [            "88888888-8888-4888-8888-888888888888"          ],          "scheduledAt": "2027-01-04T00:00:00.000Z"        }      ],      "summary": {        "succeeded": 1,        "failed": 0      },      "replaced": {        "scheduledPostId": "55555555-5555-4555-8555-555555555555",        "platform": "threads",        "canceled": 1      }    },    {      "index": 1,      "status": "failed",      "original": {        "scheduledPostId": "99999999-9999-4999-8999-999999999999",        "platform": "threads"      },      "results": [],      "error": {        "code": "POST_NOT_CANCELLABLE",        "message": "The original scheduled post started publishing or was removed before it could be replaced, so the new schedule was canceled and nothing changed."      }    }  ],  "summary": {    "items": 2,    "replaced": 1,    "failed": 1,    "unknown": 0  }}

Replace up to 50 scheduled posts in one request, each with its own new content and time. Each item does the same as POST /api/v1/scheduled-posts/{id}/replace: Posteady creates the new schedule first and cancels the original only after the new one is accepted, so an item that fails leaves its original scheduled. Each item is that request's body with the original's scheduledPostId and platform, and each item replaces a different scheduled post. To change only the time, use POST /api/v1/scheduled-posts/reschedule instead, which keeps each post with its approval and comments.

Before anything changes, Posteady checks every item: its fields, its scheduledAt, that its account is in the workspace, that the original is still scheduled and accountIds is its account, that no two items replace posts that are canceled together (the posts of one thread, or a LinkedIn post and its first comment), and the character limits, platform options, and mediaIds of Threads, X, and LinkedIn posts. Canceling the originals needs the posts.delete permission, and the organization's monthly API/MCP usage needs room for one request per item. If any check fails, nothing changes and the error message starts with the item, such as items[2]:.

The items are then replaced in order. Checks that need the media file or the platform run as each item is replaced, so such an item can fail on its own while the others are replaced. The response is HTTP 200 and lists every item in order with its status: check each item's status, results, and error. An item with status unknown may have a new schedule, a canceled original, or both: check GET /api/v1/scheduled-posts and cancel the one you don't want before you send it again.

If the request times out or the response is lost, send the same request with the same requestId. Posteady returns the results of the first request instead of replacing the posts again. While the first request is still running, the same requestId returns SERVICE_UNAVAILABLE (HTTP 503): send it again a few seconds later. The same requestId with different items returns REQUEST_CONFLICT (HTTP 409).

Each item counts toward the organization's monthly API/MCP usage like one POST /api/v1/scheduled-posts/{id}/replace request when Posteady starts it. If the limit is reached partway, the remaining items fail with QUOTA_EXCEEDED and their originals stay scheduled. Sending the same requestId again counts as one request, and it returns the results even when the limit is reached. For X, each new schedule uses credits and its original's credits are refunded when it's canceled; if the organization runs short, that item fails with INSUFFICIENT_CREDITS and its original stays scheduled. In a workspace with approvals on, each new post goes through review and approval as a new post.

AuthorizationBearer <token>

In: header

Request body

application/json

TypeScript definitions

Use the request body type in TypeScript.

Response body

application/json

application/json

application/json

application/json

application/json

application/json

application/json