Community articleRestoring activities
Added by IBM contributorIBM on March 24, 2014
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 a HTTP PUT request. This moves the activity from the trash feed to the user's My Activities feed.



To restore a deleted activity, use a HTTP PUT request. This moves the activity from the trash feed to the user's My Activities feed.



See Authenticating requests for information about how to authenticate the request.

Input

None.

Output

None.

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.
References