Skip to end of metadata
Go to start of metadata

About

If you already have  a tag on a wiki page you can delete that tag by sending a request to the wiki page feed. 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.x documentation.

Atom API Request Details

Header
  • Content-Type: application/x-www-form-urlencoded; charset=UTF-8
  • X-Update-Nonce: true (required)
TypeDELETE
URL

{host}/wikis/form/api/wiki/{wiki-id}/page/{wiki-page-id}/feed?category=tag&tag={tag-name}

Example

http://www.mysite.com/wikis/form/api/wiki/18e4-7005-4f3-94-71b/page/45b2-4fa1-45-26-50c52/feed?category=tag&tag=mytag

ResponseStatus Code: 204 No Content
Example using jQuery

jQuery.ajax({
  url: "https://www.mysite.com/wikis/form/api/wiki/18e4-7005-4f3-94-71b/page/45b2-4fa1-45-26-50c52/feed?category=tag&tag=mytag",
  type : "DELETE",
  beforeSend: function (xhr) {
      xhr.setRequestHeader('X-Update-Nonce', true);
  },
  contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  async : false,
  statusCode : {
    204 : function() {
      console.log("done!");          
    }
  },
  error: function(jqXHR, textStatus, errorThrown) {
    console.log("error");
  }
});

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 http://j-arellano.com