Skip to main content

 Services

Web services from /about to /webhooks

duplicate psml

/members/{member}/groups/{group}/uris/{uri}/duplicate [POST]

Description

Duplicate a PSML document.

The duplicated document is created in the same folder as the original.​​​​​​

Parameters

NameDescriptionRequiredTypeDefault value
filenameName of file to create (without extension)yesstring
descriptionDescription of new documentnostring
docidDocument IDnostring
labelsComma-separated list of document labelsnostring
notification-contentContent of notificationnostring
notification-groupsComma-separated list of group names to notify (optional, default to current group name)nostring
notification-labelsComma-separated list of label values for the note (if exists, creates a note)nostring
notification-subjectSubject of notification (default to document title or “Document Created”)nostring
notifyNotification behaviornoenumsilent
notify-asyncWhether emails should be sent asynchronously (for slow email servers)nobooleanfalse
original-docid
Document ID for original document if not already set, so variations can be comparednostring
titleDisplay title of new documentnostring
variationWhether to create variation metadata (requires docid on original). Requires PageSeeder v6.1 or higher.noboolean
true 

notify

normal|announce|silent

Permission

This service requires contributor or higher.

Response

<document-creation [renamed="true"
                   original-name="new:document.psml"]>
  <uri id="138614"
       scheme="https"
       host="localhost"
       port="443"
       path="/ps/jb/group1/documents/new_document.psml"
       decodedpath="/ps/jb/group1/documents/new_document.psml"
       external="false"
       mediatype="application/vnd.pageseeder.psml+xml"
       created="2013-12-19T15:14:54+11:00">
    <displaytitle>Copied document</displaytitle>
  </uri>
</document-creation>
 

Error Handling

CodeCause / Description
0x1201Illegal character in filename
0x120AInvalid Document ID
0x1209Existing Document ID
0x1211Existing URI
Created on , last edited on