1 Reply Latest reply on Jan 21, 2013 5:09 AM by nilsheuer

    Id's of the entities in v2 vs v3 Rest API

    alided

      Hi,

      We are extensively using v2 Rest API, but want to gradually move to v3. After playing a bit with v3, it looks like id's of the entities in v3 are different then v2.

      Is my observation correct, and if so is there a way to convert v2 ids into v3 and back ?

       

      Thanks

      Albert

        • Re: Id's of the entities in v2 vs v3 Rest API

          Alik, you are correct in that the ids have changed in v3. There is now only one id for all content types, which makes life easier in most situations.

           

          Jive is still using the old id convention in some areas of the v3 api. So to address this, and if you want to use the v2 convention, you can do so in the following format:

           

          /api/core/v3/contents?filter=entityDescriptor(102,5150)

          if you use this, you can get the v3 id using resources.self

          This will retrieve the document with the ID 5150 using the v3 api, but with the v2 id convention. You do need to know the contenttype id, 102 is for documents, here is the complete list: https://community.jivesoftware.com/docs/DOC-7329