database

Create a database snapshot

Changed on

Creates a point-in-time snapshot of a database branch. Defaults to the production branch if no branch name is specified.

post/sites/{site_id}/database/snapshot

Request

  • Base URL
    https://api.netlify.com/api/v1
  • URL
    https://api.netlify.com/api/v1/sites/{site_id}/database/snapshot
  • Auth
    OAuth 2
    Implicit: https://app.netlify.com/authorize

Request body

branch_idstring

The ID of the branch to snapshot. Defaults to "production" if not specified.

namestring

A name for the snapshot

Response

Created

idstring

The unique identifier of the snapshot

source_branch_idstring

The ID of the branch that was snapshotted

manualboolean

Whether this snapshot was manually created

created_atstring dateTime

When the snapshot was created

expires_atstring dateTime

When the snapshot expires

timestampstring dateTime

The point-in-time timestamp of the snapshot

Changes