What is the published format for storing NodeRED graph to a file?

Hello, is there any example how to use Admin API? How does one invoke this API from command line? Can API be used to adjust position of the node in the graph for example? How about adjusting to what other node does selected node connects to?