Cancel every scheduled channel of a post
Cancels, in one transaction, every publication of the post that is still scheduled. Drafts, published and failed channels are left as they are, and nothing is deleted: the cancelled publications stay in the post history. Pass expectedPublicationIds (the scheduled channels the person confirmed) to refuse with write_conflict when that set changed meanwhile. A channel being delivered right now refuses the whole request with invalid_transition. API keys need publication:dispatch.
AuthorizationBearer <Postdot API key>A user-owned Postdot API key sent as Authorization: Bearer <token>. Its project scope is limited by the creator’s current access.
projectId*string1 <= lengthpostId*string1 <= length- body
expectedPublicationIds?array<>items <= 100Response for status 200
application/json- response
publications*array<>curl -X POST 'https://postdot.example/api/projects/string/posts/string/cancel' \
-H 'Content-Type: application/json' \
-d '{}'{
"publications": [
{
"id": "string",
"projectId": "string",
"postId": "string",
"channelId": "string",
"targetRevisionId": "string",
"deliveryMode": "manual",
"reviewState": "compatible",
"state": "draft",
"scheduledAt": -9007199254740991,
"publishedAt": -9007199254740991,
"externalId": "string",
"externalUrl": "string",
"errorMessage": "string",
"createdByActorId": "string",
"scheduledByActorId": "string",
"stateChangedByActorId": "string",
"publishedByActorId": "string",
"lastAssessedProfileVersionId": "string",
"createdAt": -9007199254740991,
"updatedAt": -9007199254740991,
"profileAssessmentIssues": [
{}
],
"remoteRemoval": {
"state": "running",
"removedAt": 0,
"removedBy": {
"id": "string",
"displayName": "string"
},
"errorMessage": "string",
"errorCode": "string",
"requiresReconnect": true,
"requestedAt": 0
}
}
]
}Was this page helpful?
Keep a quote on the post until it can be posted POST
Text meant for another account that quotes this post once it is published. Postdot never publishes it; the same text is kept once.
Create a source post and its publications POST
Omitting scheduledAt creates unscheduled destination drafts. API keys need publication:manage; supplying scheduledAt also requires publication:dispatch. Target content must match the chosen channel profile. The examples use placeholder channel IDs that must be replaced. Never write a thread as one text with markers such as [Post 1/3], [Reply] or [Quote ...]: put the first message in the text, the next ones in targetContent.thread, a reply in the first comment, and a quote from another account in a separate post on that account’s channel. When the text has such markers on a channel with threads, the response carries structureWarnings with the proposed split; strict callers receive a 422 before the write and can acknowledge the warnings to keep intentional single-post text.