snapshots
Snapshots

Create Snapshot

post/snapshots

Request

  • Base URL
    https://app.files.com/api/rest/v1
  • URL
    https://app.files.com/api/rest/v1/snapshots
  • Auth
    none declared

Request body multipart/form-data

expires_atstring date-time

When the snapshot expires.

namestring

A name for the snapshot.

pathsstring[]

An array of paths to add to the snapshot.

workspace_idinteger

Workspace ID. 0 means the default workspace.

Example request

{
  "expires_at": "2000-01-01T01:00:00Z",
  "name": "My Snapshot"
}

Response

The Snapshots object.

idinteger

The snapshot's unique ID.

expires_atstring date-time

When the snapshot expires.

finalized_atstring date-time

When the snapshot was finalized.

namestring

A name for the snapshot.

user_idinteger

The user that created this snapshot, if applicable.

bundle_idinteger

The bundle using this snapshot, if applicable.

workspace_idinteger

Workspace ID. 0 means the default workspace.

Example response

{
  "id": 1,
  "expires_at": "2000-01-01T01:00:00Z",
  "finalized_at": "2000-01-01T01:00:00Z",
  "name": "My Snapshot",
  "user_id": 1,
  "bundle_id": 1
}

Changes