Creating community bookmarks
Added by IBM contributorIBM | Edited by Claudia R Elbourn on July 21, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

You can call the Community Bookmark API with the POST method to create a bookmark for your community.
Tags: commapi
For more information on the required data format, see Community Bookmark Entry Content.
Input
Method URI Description
POST /communities/service/atom/community/bookmarks Value of the href attribute of the the <link> element that has a rel="http://www.ibm.com/xmlns/prod/sn/bookmarks" attribute value for each community Atom entry.
Content Type: application/atom+xml
Sample Request:
    <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="bookmark" scheme="http://www.ibm.com/xmlns/prod/sn/type">
    </category>
    <content type="html"></content>
    <title type="text">Bookmark Test</title>
    <link href="http://www.example.com/">
    </link>
    </entry>
Name Type Optional Description
communityUuid
string No The uuid of community that you wish to query. This is a mandatory parameter
Output
Content Type: application/atom+xml
Name Type Optional Description
Location
string No Link to edit_url of the new bookmark entry. You can use the web address specified here to subsequently retrieve and update the bookmark entry.
Code Description
201
Created – Indicates that the bookmark was successfully created. If an error occurs, this header will contain one of the error codes below.
400
Bad Request.
403
Forbidden. The server refuses to fulfill a request, typically because the request was for an object that you don't have permission to access.
401
Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.