Community articleUpdating activities
Added by IBM contributorIBM on June 19, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

To update an activity, send a replacement Atom Entry document containing the modified activity to the existing activity's edit URI.



To update an activity, send a replacement Atom Entry document containing the modified activity to the existing activity's edit URI.

All existing activity information will be replaced with the new data. To avoid deleting all existing data, retrieve any data you want to retain first, and send it back with this request. For example, if you want to add a new tag to an activity, retrieve the existing tags and other data, and send it all back with the new tag in the update request. See Retrieving activities for more information.

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

Input

Provide an activity entry Atom document. The content type of the Atom entry document must be application/atom+xml.

Output

None.

Input
Method URI Description
PUT /activities/service/atom2/activitynode Value of the href attribute of <link> that has a rel="edit" attribute value for an activity in the user's overview feed.
Content Type: application/atom+xml
Name Type Optional Description
activityNodeUuid
string No The UUID of the activity node.
Output
Code Description
200
OK. Indicates that the activity was successfully updated.
403
Forbidden. Authorization Failed
404
Not Found.