Update subcommunities
To update a subcommunity, send a replacement subcommunity entry document in Atom format to the existing subcommunity's edit web address.All existing subcommunity entry 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 a subcommunity entry, retrieve the existing tags, and send them all back with the new tag in the update request. See Retrieve a subcommunity 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 subcommunity Value of the href attribute of the <link> element with a rel="edit" attribute value for each entry that represents a subcommunity in the My Communities feed. subcommunity
Input
Provide a subcommunity Atom entry document. A subcommunity is the same as a community entry, but contains a rel="http://www.ibm.com/xmlns/prod/sn/parentcommunity" <link> element. 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 subcommunity entry was successfully updated. If an error occurs, this header will contain one of the error codes below.
- HTTP/1.1 401 Unauthorized
- HTTP/1.1 404 Not Found
Parent topic
Work with subcommunitiesRelated reference
Community entry content
});