# Snapshot API Creating a local snapshot requires a dashboard

**URL:** <https://community.grafana.com/t/snapshot-api-creating-a-local-snapshot-requires-a-dashboard/75788>\
**Category:** Developers & API\
**Tags:** snapshots\
**Created:** [November 10, 2022, 11:36am UTC](https://community.grafana.com/t/snapshot-api-creating-a-local-snapshot-requires-a-dashboard/75788 "2022-11-10T11:36:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eutervogel](https://avatars.discourse-cdn.com/v4/letter/e/d6d6ee/32.png) [@eutervogel](https://community.grafana.com/u/eutervogel)\
**Post date:** [November 10, 2022, 11:36am UTC](https://community.grafana.com/t/snapshot-api-creating-a-local-snapshot-requires-a-dashboard/75788/1 "2022-11-10T11:36:25Z")

</div>

Hi, I’m trying to take a snapshot of my dashboard using the snapshot api as shown here: [HTTP Snapshot API | Grafana documentation](https://grafana.com/docs/grafana/latest/developers/http_api/snapshot/)

It returns: Creating a local snapshot requires a dashboard

I found something about the issue here: [Snapshots cannot be created via API without setting `id` to an arbitrary value. · Issue #58200 · grafana/grafana · GitHub](https://github.com/grafana/grafana/issues/58200)

The suggested solutuion is setting  
`"id" :`

to an arbitrary number.

The “Creating a local snapshot requires a dashboard” issue is now gone but I only get this:

 ![grafana1](https://us1.discourse-cdn.com/grafana/original/3X/3/4/340463a5a2040ddc04367d3cef823ce77f447975.png)

What am I doing wrong? Here is my request:

```auto
{
      "dashboard": {
        "id": 1,
        "editable":false,
        "hideControls":true,
        "nav":[
        {
          "enable":false,
        "type":"timepicker"
        }
        ],
        "rows": [
          {

          }
        ],
        "style":"dark",
        "tags":[],
        
        "time":{
        },
        "timezone":"browser",
        "title":"Home",
        "version":5
        },
      "expires": 3600
    }

```

POST to /api/snapshots

Thanks in advance
