{"action":"created","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/2139","labels_url":"https://api.github.com/repos/grafana/grafana/issues/2139/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/2139/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/2139/events","html_url":"https://github.com/grafana/grafana/issues/2139","id":86870655,"number":2139,"title":"HTTP snapshots API","user":{"login":"gpestana","id":1398860,"avatar_url":"https://avatars.githubusercontent.com/u/1398860?v=3","gravatar_id":"","url":"https://api.github.com/users/gpestana","html_url":"https://github.com/gpestana","followers_url":"https://api.github.com/users/gpestana/followers","following_url":"https://api.github.com/users/gpestana/following{/other_user}","gists_url":"https://api.github.com/users/gpestana/gists{/gist_id}","starred_url":"https://api.github.com/users/gpestana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpestana/subscriptions","organizations_url":"https://api.github.com/users/gpestana/orgs","repos_url":"https://api.github.com/users/gpestana/repos","events_url":"https://api.github.com/users/gpestana/events{/privacy}","received_events_url":"https://api.github.com/users/gpestana/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-06-10T07:21:53Z","updated_at":"2015-10-08T22:13:05Z","closed_at":"2015-06-10T19:41:22Z","body":"In the [github documentation](https://github.com/grafana/grafana/blob/master/docs/sources/reference/http_api.md), the only info about how to create snapshots through the HTTP API is the following:\r\n```\r\nCreate new snapshot\r\nPOST /api/snapshots\r\n\r\nGet Snapshot by Id\r\nGET /api/snapshots/:key\r\n```\r\nI've been looking at the codebase and trying to create snapshots from existing panels but haven't managed so far. \r\nWould it be possible to be a bit more explicit about how to generate the snapshots through the API and which data do I have to include in the request body? \r\n\r\nAnswers for: \r\n- Is the 'key' the ID of the panel I want to get the snapshot from? \r\n- How to get the snapshot's URL and create an iframe from that?\r\n \r\nWould be really helpful to have in the documentation. Once I understand it properly, I will make a pull req to update the documentation. "},"comment":{"url":"https://api.github.com/repos/grafana/grafana/issues/comments/146701293","html_url":"https://github.com/grafana/grafana/issues/2139#issuecomment-146701293","issue_url":"https://api.github.com/repos/grafana/grafana/issues/2139","id":146701293,"user":{"login":"soelvar","id":4714049,"avatar_url":"https://avatars.githubusercontent.com/u/4714049?v=3","gravatar_id":"","url":"https://api.github.com/users/soelvar","html_url":"https://github.com/soelvar","followers_url":"https://api.github.com/users/soelvar/followers","following_url":"https://api.github.com/users/soelvar/following{/other_user}","gists_url":"https://api.github.com/users/soelvar/gists{/gist_id}","starred_url":"https://api.github.com/users/soelvar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soelvar/subscriptions","organizations_url":"https://api.github.com/users/soelvar/orgs","repos_url":"https://api.github.com/users/soelvar/repos","events_url":"https://api.github.com/users/soelvar/events{/privacy}","received_events_url":"https://api.github.com/users/soelvar/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T22:13:05Z","updated_at":"2015-10-08T22:13:05Z","body":"Hi Torkel,\r\n\r\nExcuse me for stealing this thread, but how do you \"render data to PNG images and share images\" via API - if possible.\r\n\r\nCheers,\r\nJesper"}}