update rest api and treenode