Community articleCreating feed links
Added by IBM contributorIBM on March 14, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

To share a feed link with a community, send an Atom entry document containing the feed link to the community feed links resource.
Tags: commapi



To share a feed link with a community, send an Atom entry document containing the feed link to the community feed links resource.

You cannot share a link to a feed that requires authentication with a community.

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

Input

Provide a feed link Atom entry document.

Note: The content type of the Atom entry document must be application/atom+xml.

Output

An Atom entry document containing the new feed link.

Input
Method URI Description
POST /communities/service/atom/community/feeds Value of the href attribute of the <link> element with the rel="http://www.ibm.com/xmlns/prod/sn/feeds" attribute value for each community.
Content Type: application/atom+xml
Sample Request:
<?xml version="1.0" encoding="UTF-8"?>

<entry
 xmlns="http://www.w3.org/2005/Atom" 

 xmlns:app="http://www.w3.org/2007/app" 

 xmlns:snx="http://www.ibm.com/xmlns/prod/sn">
<category term="feed" scheme="http://www.ibm.com/xmlns/prod/sn/type">
</category>

<title type="text">Feed link test</title>

<content type="html">
</content>

<link href="https://greenhousestage.lotus.com/forums/atom/topics?communityUuid=050c03c9-e062-4804-a6fc-0462c880fcaf"/> 
</entry>
Name Type Optional Description
communityUuid
string No The UUID of the community you wish to create a feed link in.
Output
Content Type: application/atom+xml
Name Type Optional Description
Location
string No Link to edit_url of the feed link. You can use the web address specified here to subsequently retrieve and update the feed link.
Code Description
201
Created. Indicates that the feed link was successfully created. If an error occurs, this header contains one of the error codes.
400
Bad Request.
401
Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.