Skip to main content

 Services

Web services from /about to /webhooks

unarchive comment

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

Description

Unarchive comment.

Unarchive an archived comment.

Parameters

No parameters required.

Permission

Only contributor and higher can unarchive comments that have been posted, however, only manager and higher can unarchive the comments of other members.

guest and higher can unarchive their own draft comments.

An administrator can unarchive any comment.

Response

<comment-unarchive>
  <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-unarchive>

Error Handling

CodeCause / Description
0x1310The comment is not archived
0x1311The object specified is not a comment
0x6305Failed to unarchive comment
Created on , last edited on