Start a new post from an existing one
Creates a new post with the same text and one unscheduled draft per channel that is still active, carrying the content that channel had (its latest draft, otherwise the version it scheduled or published). The original post, its publications and their history are unchanged. Use it to reuse a cancelled or published post. API keys need publication:manage.
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 <= lengthResponse for status 201
application/json- response
post*publications*array<>curl -X POST 'https://postdot.example/api/projects/string/posts/string/duplicate'{
"post": {
"id": "string",
"projectId": "string",
"title": "string",
"sourceContent": "string",
"sourceRevision": -9007199254740991,
"createdByActorId": "string",
"createdAt": -9007199254740991,
"updatedAt": -9007199254740991
},
"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?
Move a post to the trash DELETE
Moves the post to the trash, where it stays for the installation retention period (30 days by default) before it is deleted forever. Channels still scheduled are cancelled in the same step, with their usual publication.cancelled events, and a pending retry of a failed channel is cancelled. Refused with post_sending while a channel is being sent and with post_needs_answer while a channel waits for someone to record what happened. Removing a post with a published channel requires a project owner, or an editor when the project policy editorsCanRemovePublishedPosts is on; it removes the post from Postdot only, never from the platform. Pass expectedPublishedPublicationIds (the published channels the person confirmed) to refuse with write_conflict when that set changed meanwhile. Emits post.deleted. API keys need publication:delete.
Read the current source post revision GET
Next Page