unarchive comment
/members/{member}/comments/{commentid}/unarchive [POST]
API Support | Available since | Last updated | Output |
---|---|---|---|
5.1102 | 5.9500 | xml, json |
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.
A 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
Code | Cause / Description |
---|---|
0x1310 | The comment is not archived |
0x1311 | The object specified is not a comment |
0x6305 | Failed to unarchive comment |