Create Scripted Dashboard Using HTTP API

Hello,

Is it possible to create a Scripted Dashboard using the HTTP API? Ideally I’d like to be able to send the JS code to some URL which would save it as a Scripted Dashboard.

My scenario is that I have some metrics whose name changes every time the application is restarted (because a framework I’m using changes the application id every time and that gets prefixed to the metric name). I believe that with scripted dashboards I will be able to workaround this impediment. Are there any other solutions for this?

Thanks!