2 Replies Latest reply on Feb 15, 2017 1:04 PM by prashant.mr2@gmail.com

    How to retrieve content using /contents and DOC id?

    shanna

      Using Jive UI, I created a document via my ABC user account and got a URL ending with DOC-29204. I am aware that RestAPI /api/core/v3/contents/{content-ID} requires the unqiue content id instead of the DOC-ID. In order to make the get request using the DOC-ID, I read that I should use the syntax: /api/core/v3/contents?filter=entityDescriptor(102,29204) . So using RESTClient in Firefox, I specify the same ABC user credential and ran a couple of tests. When I do the get call, /api/core/v3/contents, everything works well. But when I do the get call, /api/core/v3/contents?filter=entityDescriptor(102,29204), I get this error:


      throw 'allowIllegalResourceCall is false.';

      {"error":{"message":"You are not allowed to perform this request","status":403}}

       

      I'm baffled what is wrong since user ABC created the document and is able to execute /api/core/v3/contents fine. It just doesn't work when I specify the entityDescriptor. What am I doing wrong? 

       

      Any help is appreciated. Thanks.