Dynamic Dashboard Schema and Dynamic kibana charts

Hi,

This is very useful information for creating dashboard and visualizations dynamically.

Is there a way to dynamically generate the panelsJSON field?

"panelsJSON": "[{"col":1,"id":"Active-Requests-By-Server","panelIndex":7,"row":9,"size_x":6,"size_y":4,"type":"visualization"},{"col":7,"id":"EL1-Cache-Hits-By-Server","panelIndex":8,"row":5,"size_x":6,"size_y":4,"type":"visualization"},{"col":1,"id":"L1-Cache-Hits-By-Server","panelIndex":9,"row":5,"size_x":6,"size_y":4,"type":"visualization"},{"col":7,"id":"Stream-Count-by-Server","panelIndex":10,"row":1,"size_x":6,"size_y":4,"type":"visualization"},{"col":1,"id":"Total-Stream-Count","panelIndex":11,"row":1,"size_x":6,"size_y":4,"type":"visualization"},{"col":7,"id":"Queue-Depth-By-Server","panelIndex":12,"row":9,"size_x":6,"size_y":4,"type":"visualization"}]"

Currently, the panel should be defined with the row, column information.So, everytime we need to add/remove a visualization, we need to go through existing list of visualizations in the panelsJSON field and add/remove our visualization. Instead it would be nice if there is a api call for adding visualization to the existing dashboard.