# Create an independent copy of a draft publication



URL: /docs/reference/publications/duplicateDraftPublication

```json
{"openapi":"3.0.3","info":{"title":"Postdot API","description":"The HTTP API for the lightweight, self-hosted Postdot publication orchestrator.","version":"0.1.0"},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"Postdot API key","description":"A user-owned Postdot API key sent as `Authorization: Bearer <token>`. Its project scope is limited by the creator’s current access."},"sessionCookie":{"type":"apiKey","in":"cookie","name":"better-auth.session_token","description":"The Better Auth email/password session cookie used by the web application."}},"schemas":{}},"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"tags":[{"name":"System","description":"Service health and runtime information."},{"name":"Access","description":"Instance membership and invitations."},{"name":"Projects","description":"Project lifecycle and access."},{"name":"Channels","description":"Project publication destinations."},{"name":"Posts","description":"Source posts and publication creation."},{"name":"Publications","description":"Publication workflow operations."},{"name":"Taxonomy","description":"Project categories and publication tags."},{"name":"Media","description":"Project media assets and uploads."},{"name":"Settings","description":"Instance-level runtime configuration."},{"name":"Audit","description":"Project audit history."},{"name":"Notifications","description":"Signed-in user notification inboxes with optional project context."},{"name":"Analytics","description":"Provider-neutral publication and execution analytics."},{"name":"Provider Analytics","description":"Persisted provider-owned metric observations."}],"paths":{"/api/projects/{projectId}/publications/{publicationId}/duplicate":{"post":{"operationId":"duplicateDraftPublication","summary":"Create an independent copy of a draft publication","tags":["Publications"],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"publicationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Response for status 201","content":{"application/json":{"schema":{"type":"object","required":["post","publication"],"properties":{"post":{"type":"object","required":["id","projectId","title","sourceContent","sourceRevision","createdByActorId","createdAt","updatedAt"],"properties":{"id":{"type":"string"},"projectId":{"type":"string"},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceContent":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},{"type":"array","items":{}},{"type":"object","patternProperties":{"^(.*)$":{}}}]},"sourceRevision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdByActorId":{"type":"string"},"createdAt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"publication":{"allOf":[{"type":"object","required":["id","projectId","postId","channelId","targetRevisionId","deliveryMode","reviewState","state","scheduledAt","publishedAt","externalId","externalUrl","errorMessage","createdByActorId","scheduledByActorId","stateChangedByActorId","publishedByActorId","lastAssessedProfileVersionId","createdAt","updatedAt"],"properties":{"id":{"type":"string"},"projectId":{"type":"string"},"postId":{"type":"string"},"channelId":{"type":"string"},"targetRevisionId":{"anyOf":[{"type":"string"},{"type":"null"}]},"deliveryMode":{"enum":["manual","automatic"]},"reviewState":{"enum":["compatible","review_required"]},"state":{"enum":["draft","scheduled","ready","publishing","published","failed","ambiguous","cancelled"]},"scheduledAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdByActorId":{"type":"string"},"scheduledByActorId":{"anyOf":[{"type":"string"},{"type":"null"}]},"stateChangedByActorId":{"type":"string"},"publishedByActorId":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastAssessedProfileVersionId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},{"type":"object","required":["profileAssessmentIssues"],"properties":{"profileAssessmentIssues":{"type":"array","items":{"type":"object","patternProperties":{"^.*$":{}}}}}}]}}}}}},"401":{"description":"Response for status 401","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"403":{"description":"Response for status 403","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"404":{"description":"Response for status 404","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Response for status 409","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}}},"servers":[{"url":"https://postbot.example","description":"Replace with your Postdot instance origin."}]}
```
