IBM Connections 4 API: How to Like a Wiki Page Using jQuery Ajax


If you have not already liked a wiki page, you can do so by sending an Atom recommendation document to the web address of the wiki page. Here's one easy way to do it with an asynchronous HTTP (Ajax) request using jQuery.

There is no a link to IBM Connections 4 documentation.

Atom API Request Details


Content-Type: application/atom+xml;type=entry;charset=UTF-8




Response Status Code: 201 Created

Example Atom Entry

<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="">
  <category term="recommendation" label="recommendation"
  scheme=",2006:td/type" />
Example using jQuery

var strData = '<?xml version="1.0" encoding="utf-8"?><entry xmlns="">';
strData +='<category term="recommendation" label="recommendation" scheme=",2006:td/type" /></entry>';

    url : "https:/",
    type : "POST",
    contentType: "application/atom+xml;type=entry;charset=UTF-8",
    async : true,
    data: strData,
    statusCode : {
        201 : function() {
    error: function(jqXHR, textStatus, errorThrown) {
        console.log(jqXHR + " - " + textStatus + ' - ' + errorThrown);

Note:  console.log can throw errors in IE, they are there for illustrative purposes only and should be changed as required.

About the author

Enterprise Web Developer
Joaquin is an Enterprise Web Developer at Base22 with over seven years of experience designing and developing web solutions for enterprise clients. He is a well rounded web developer with skills building interfaces in IBM WebSphere Portal and WCM, IBM Connections, and many others. He is an Oracle Certified Java Developer and a Microsoft Certified Visual Studio Developer. He blogs at