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 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 labels for the note (if exists creates a note)nostring
notification-subjectSubject of notification (defaut to document title or "Document Created")nostring
notifyNotification behaviornoenumsilent
titleDisplay title of new documentnostring

notify

normal|announce|silent

Permission

Undocumented permissions requirements.

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
0x1201 Illegal character in filename
0x120A Invalid Document ID
0x1209 Existing Document ID
0x1211 Existing URI

Created on , last edited on