Skip to main content

Create a snapshot

POST 

/v1/grafana/api/snapshots/

Creates a snapshot.

Request

Body

    dashboard object

    The complete dashboard model.

    name string

    Snapshot name.

    expires integer

    When the snapshot should expire in seconds. 3600 is 1 hour, 86400 is 1 day. Default is never to expire.

    external boolean

    Save the snapshot on an external server rather than locally. Default is false.

    key string

    Define the unique key. Required if external is true.

    deleteKey string

    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.

Responses

successful query

Schema
    deleteKey string

    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.

    deleteUrl string

    Delete url.

    key string

    Unique key.

    url string

    URL.

    id integer

    ID.

Loading...