I am trying to create an automatic snapshot using the http api. I have done several steps. First I made a copy of the desktop json, I removed the uid and used the json as described in the http api section on the grafana website. I thought it was woring with the following command:
curl -XPOST ‘http://grafana.staged-by-discourse.com/api/snapshots’ -H ‘Authorization: Bearer xxxxxx’ -H ‘Accept: application/json’ -H ‘Content-Type: application/json’ -d ‘{very-long-json}
’
But I have problems, I think for one, with timeout, because some panals’ data aren’t contained in the snapshot. Interactively I can set the value of timeout, and the problem disappears. How can I set the value for timeout using the snapshot http api? Or could it be something else?
The other problem is that the data aren’t embedded in the snapshot. Unlike the interactive snapshot, the variables are still active when I do it with the API. What did I do wrong?