Update a community forum reply programmatically
To update a reply to a topic in a community forum, send an updated forum reply document in Atom format to the existing reply's edit web address.All existing forum reply 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. See Retrieve forum replies for more information. If you want to delete a reply and provide a customized message about why the reply was removed, send this request without first retrieving the reply data and include a <category scheme="http://www.ibm.com/xmlns/prod/sn/flags term="deleted"> element in the entry content. See Delete forum replies for more information.
See Authenticating requests for information about how to authenticate the request.
Table 1. Atom API request details
Method Resource URI Input representation PUT forum reply Value of the href attribute of the <link> element that has a rel="edit" attribute value for each entry in the forum replies feed. forum reply
Input
Provide a forum reply Atom entry document.Note: The content type of the Atom entry document must be application/atom+xml.
Output
None.Returned HTTP headers
HTTP/1.1 200 OK
Indicates that the forum reply was successfully updated. If an error occurs, this header contains one of the error codes.
- HTTP/1.1 401 Unauthorized
- HTTP/1.1 404 Not Found
Parent topic
Work with community forum repliesRelated reference
Retrieve a community forum reply programmatically
Delete a community forum reply programmatically
Forum reply entry content
});