Web service API

How to use PageSeeder's Web service API

duplicate psml

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

com.pageseeder.psml.DuplicateDocument

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 document.nostring
docidDocument ID.nostring
labelsComma separated list of document labels.nostring
notification-contentContent of notification.nostring
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 behavior.noenumsilent
notify-asyncWhether emails should be sent asynchronously (for slow email servers).nobooleanfalse
titleDisplay title of new document.nostring

notify

normal|announce|silent

Permission

Permissions requirements to be updated.

Response

Undocumented XML response

The XML output follows this format:

<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