Whats the difference between the "raw" and non "raw" versions of a tree in WebContent

When dealing with editing "tree" entities in WebContent, what is the difference between the raw and normal versions of a tree? regular endpoint: /WebContent/trees/{id}/versions/newest/ raw endpoint: /WebContent/trees/{id}/versions/newest/raw/

Best Answer

  • Joshua Krebs
    Answer ✓
    When using WebContent trees there is the ability to have "derived" nodes where you don't have to define each child node under a specific node. Based on the data assigned to that top level node, its children will get "generated" when you hit the normal endpoint (/WebContent/trees/{id}/versions/newest/). If you need to view the json data that drives this child node generation, you need to hit the raw version (which returns node without the generated children. This is especially important when you are editing trees with these nodes as you can't post updates to the non-raw version of a tree if it has one of these special nodes with derived children.