Docs

Duplicate Document

POST /documents/{documentId}/duplicate

POST/documents/{documentId}/duplicate

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Event tokenx-Event-TokenOptionalRun **Get Tokens** in the Authorization folder.

Creates an independent copy of a dynamic document. The copy carries the source's name (with " copy" appended), description, content, and variables. Assets are duplicated to the new document with their blobs copied server-side, and the content's assetId / coverAssetId / $var: references are rewritten to the new ids. Shares and links are not copied.

Path Parameters

FieldTypeRequiredDescription
documentIdGuidOptionalThe ID of the document to duplicate.

Response

Returns the new document's Guid ID.