...
In order to provide facility to add or remove leafNodes children to a unit level in the hierarchy, we have the below APIs.
...
This API facilitates user to add list of leafNodes children to a unit in the hierarchy under a collection content
...
Code Block |
---|
Request: { "request": { "rootId" : "{collection root ID}", "unitId" : "{first Level parent of the leafNodeschildren}", "leafNodeschildren": [{List of leafNodeschildren to be added}] } } |
Code Block |
---|
Response: { "id": "ekstepapi.content.hierarchy.add", "ver": "3.0", "ts": "YYYY-MM-DDThh:mm:ssZ+/-nn.nn", "params": { "resmsgid": "", "msgid": "", "err": "", "status": "successful", "errmsg": "" }, "responseCode": "OK", "result": { "identifier": "{root ID}" "unitId" : [{List of leafNodeschildren added}] } } |
Remove leafNodes from hierarchy
This API removes the list of LeafNodes children from a unit in the hierarchy of a collection content.
...
Code Block |
---|
Request: { "request": { "rootId" : "{collection root ID}", "unitId" : "{first Level parent of the leafNodeschildren}", "leafNodeschildren": [{List of leafNodeschildren to be removed}] } } |
Code Block |
---|
Response: { "id": "ekstepapi.content.hierarchy.remove", "ver": "3.0", "ts": "YYYY-MM-DDThh:mm:ssZ+/-nn.nn", "params": { "resmsgid": "", "msgid": "", "err": "", "status": "successful", "errmsg": "" }, "responseCode": "OK", "result": { "identifier": "{root ID}" } } |
...