v1

latestSwagger 2.02026-07-17290378721.8 KB
snapshots

When creating a snapshot using the API, you have to provide the full dashboard payload including the snapshot data. This endpoint is designed for the Grafana UI.

Snapshot public mode should be enabled or authentication is required.

post/snapshots

Request body

dashboardJson required
deleteKeystring

Unique key used to delete the snapshot. It is different from the key so that only the creator can delete the snapshot. Required if external is true.

expiresinteger

When the snapshot should expire in seconds in seconds. Default is never to expire.

externalboolean

these are passed when storing an external snapshot ref Save the snapshot on an external server rather than locally.

keystring

Define the unique key. Required if external is true.

namestring

Snapshot name

Response

(empty)

deleteKeystring

Unique key used to delete the snapshot. It is different from the key so that only the creator can delete the snapshot.

deleteUrlstring
idinteger

Snapshot id

keystring

Unique key

urlstring