Restoring activity nodes
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 entry to an activity, use an HTTP PUT request.

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.

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="" term="deleted"/> flag element from the entry before restoring it.
Content Type: application/atom+xml
Name Type Optional Description
string No The UUID of the activity node.
Code Description
Indicates that the activity node was successfully restored and no content is returned.
Forbidden. Authorization Failed
Not Found.
Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.