6 Replies Latest reply on Apr 1, 2014 6:14 PM by aarontang

    contentID under /contents service

    vivirain

      Hi,

       

      We would like to retrieve (GET) & update (PUT) a document (contentID=1234) using REST API V3:

       

      GET /contents/1234

      $j.ajax({

             type : "GET",

             dataType: "text",

       

             url : "/api/core/v3/contents/1234",

             success : function(_data){

                   _data = _data.replace(/^throw [^;]*;/,'');

                   _data = $j.parseJSON(_data);

                    alert(_data);

             }

      });

       

       

      But it always return below error.

      throw 'allowIllegalResourceCall is false.';

      {"error":{"message":"Missing content ID 1234","status":404}}

       

      Could anyone can help?

       

      Thanks,