Restoring activities
Added by IBM contributorIBM | Edited by Claudia R Elbourn on July 7, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

To restore a deleted activity, use an HTTP PUT request.

This moves the activity from the trash feed to the user's My Activities feed.

Input
Method URI Description
PUT /activities/service/atom2/trashednode Value of the href attribute of <link rel="edit"> element of an activity in the user's Activity Trash feed.
Note: Remove the <category scheme="http://www.ibm.com/xmlns/prod/sn/flags" term="deleted"/> flag element from the entry before restoring it.
Content Type: application/atom+xml
Name Type Optional Description
activityNodeUuid
string No The UUID of the activity node.
Output
Code Description
204
Indicates that the activity was successfully restored and no content is returned.
403
Forbidden. Authorization Failed
404
Not Found.
401
Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.
References