Home
Updating activity nodes
To update an activity entry, send a replacement Atom entry document containing the modified activity node to the existing activity's edit Web address.
All existing activity entry information will be replaced with the new data. To avoid deleting existing data, retrieve any data that you want to retain first, and send it back with this request. See Retrieving activity nodes for more information.
The types of activity nodes that you use to create entries changed from version 1.0.x. For example, in 1.0.x, to create an entry that included a bookmark or file, you posted an entry node of type bookmark or of type file. In version 2.0, to create an entry that includes a bookmark or file, post an entry node of type entry and include a field of the appropriate type, link or file respectively, in that entry. For backwards compatibility, you can continue to retrieve information from entries created based on node types defined in version 1.0.x. However, some of the node types are no longer part of the 2.0 Atom APIs; you can no longer update entries based on the bookmark, file, or message node types using the 2.0 APIs. For more information about the node types that were supported in 1.0.x, go to the following external Web site:
See Authenticating requests for information about how to authenticate the request.
Atom API request details
Method Resource URI Input representation PUT activity node Value of the href attribute of the <link> element that has a rel="edit" attribute for the associated node in the activity node list. activity node
Input
Provide a revised activity node type Atom entry document.
Output
None. Returned HTTP Headers
- HTTP/1.1 200 OK
- Indicates that the activity node was successfully updated.
Error codes
- HTTP/1.1 403 Forbidden: Authorization failed.
- HTTP/1.1 404 Not Found
Related tasks
Related reference