Community articleRestoring activity nodes
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 entry to an activity, send a HTTP PUT request to the edit web address for the node defined in the trash feed. This moves the entry from the trash feed to the user's activity node list.



To restore a deleted entry to an activity, send a HTTP PUT request to the edit web address for the node defined in the trash feed. This moves the entry from the trash feed to the user's activity node list.


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 the <link> element with the rel="edit" attribute for an activity node 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 node was successfully restored and no content is returned.
403
Forbidden. Authorization Failed
404
Not Found.