Web service API

How to use PageSeeder's Web service API

archive comment

/members/{member}/comments/{commentid}/archive [POST]

com.pageseeder.comment.ArchiveComment

Description

Archive an existing comment.

Parameters

No parameters required - the comment is specified by the xlinkid in the URL.

Permission

Undocumented permissions requirements.

Response

<comment-archive>
   <comment id="123"
                 contentrole="Comment"
                     created="2012-03-08T12:34:00+10:00"
                     [status="Open"]
                        [due="2012-03-10T18:00:00+10:00"]
                   [priority="High"]
                  [moderated="true"]>
       <title>Cavern stolen!</title>
       <author email="alibaba@fortythieves.com.au"> ... </author>
       <assignedto id="123" date="2012-03-09T..."> ... </assignedto>
       <modifiedby id="456" date="2012-03-09T..."> ... </modifiedby>
       <content id="789" type="text/plain">Sesame opened the door</content>
       <attachment>
         <uri id="189">...</uri>
       <attachment>
       <attachment fragment="5">
         <uri id="289">...</uri>
       </attachment>
     </comment>
 </comment-archive>
 

Error handling

CodeCause / Description
0x1309 The comment is already archived
0x1311 The object specified is not a comment
0x6304 Failed to archive comment

Created on , last edited on