Docs
Duplicate Document
POST /documents/{documentId}/duplicate
POST
/documents/{documentId}/duplicateRequired Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
| Event token | x-Event-Token | Optional | Run **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
| Field | Type | Required | Description |
|---|---|---|---|
| documentId | Guid | Optional | The ID of the document to duplicate. |
Response
Returns the new document's Guid ID.