Create community feeds programmatically 

To create a community feed, send a POST request to the remote applications feed of the community to which you want to add the feed.

Before you begin

You cannot add feeds to a community programmatically until the Feeds widget has been added to the community using the Customize menu option in the product user interface. It is not until the widget is explicitly added that the service document resource for feeds is available from the remote applications feed.

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

  1. Determine the URI to which to POST the feed Atom document to create the community feed by first accessing the service document for remote applications. See Retrieve a remote applications list for more details.

  2. Create an Atom document to represent the community feed.

  3. Send the Atom document using a POST request to the following URI:

      Table 1. Atom API request details
      Method Resource URI Input representation
      POST Communities remote applications feed Value of the href attribute in the <link> element that has the following rel attribute value: rel="" for the entry with the Feeds category in the remote applications Atom document of the community to which you want to add the feed. feed


Provide an Atom entry document that contains the feed entry as the post data. The content type must be "application/atom+xml".



Returned HTTP headers

HTTP/1.1 201 Created

Error codes

Related reference
Retrieve a remote applications list