3 Replies Latest reply on Aug 8, 2014 2:33 AM by Stub

    Delete user skill/endorsement via REST API

      Hi,

       

      I'm having trouble removing a skill/endorsement via the REST API.

       

      The call I'm trying to make is documented at https://developers.jivesoftware.com/api/v3/cloud/rest/PersonService.html#deleteExpertiseTag(String, String)

       

      I receive a 204 (No Content) response ("request was successful" according to the documentation) but the skill/endorsement is not removed.

       

      I'm trying to do this from JavaScript on a Group page, and I'm trying to remove a skill/endorsement from the local user, so it should be allowed. As an example, the code I'm using is:

       

      var skillOptions = ['developer','designer','engineer','marketer'];
        for(var i = 0; i < skillOptions.length; i++){
        jQuery.ajax({
        url: '/api/core/v3/people/' + window.parent._jive_current_user.ID + '/expertise/endorse/' + skillOptions[i],
        dataType: 'json',
        contentType: 'application/json',
        data: null,
        type: 'DELETE',
        success: function(){},
        error: function(){
        return;
        }
        });
        }
      

       

      Has anyone else managed to use this? I'm wondering whether it just doesn't work correctly.

       

      Thanks,

      Stuart

       

      Message was edited by: Stuart Bennett Added code snippet.