Snapshots
6 operations, generated from the OpenAPI document.
A base's snapshots, newest first, and the workspace's retention (creators and up)
GET /api/bases/{baseId}/snapshots
Access: base:snapshot on the base (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
Responses
200Successsnapshotsarray of object requiredidstring (uuid) requiredbaseIdstring (uuid) requiredbaseNamestring requiredkind"manual" | "auto" requiredsizeinteger requiredtablesinteger requiredrecordsinteger requiredcreatedBystring (uuid) | null requiredcreatedAtstring (date-time) requiredexpiresAtstring (date-time) required
retentionDaysinteger required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)
Take a snapshot of a base now (schema, records, links, attachment references)
POST /api/bases/{baseId}/snapshots
Access: base:snapshot on the base (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
Responses
201Successidstring (uuid) requiredbaseIdstring (uuid) requiredbaseNamestring requiredkind"manual" | "auto" requiredsizeinteger requiredtablesinteger requiredrecordsinteger requiredcreatedBystring (uuid) | null requiredcreatedAtstring (date-time) requiredexpiresAtstring (date-time) required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)
Restore a snapshot to a new base of the same workspace (never in place), in the background
POST /api/bases/{baseId}/snapshots/{snapshotId}/restore
Access: base:snapshot on the base (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
snapshotId | path | string (uuid) | yes |
Request body
namestring
Responses
201Successidstring (uuid) requiredsnapshotIdstring (uuid) requiredstatus"running" | "done" | "failed" requiredbaseobject | null requiredidstring (uuid) requiredworkspaceIdstring (uuid) requirednamestring requireddescriptionstring | null requirediconstring | null requiredcolorstring | null requiredrole"owner" | "creator" | "editor" | "commenter" | "read_only" requiredcreatedAtstring (date-time) requiredupdatedAtstring (date-time) required
errorstring | null requiredcreatedAtstring requiredfinishedAtstring | null required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
A snapshot restore's progress (only who started it)
GET /api/bases/{baseId}/snapshot-restores/{restoreId}
Access: base:snapshot on the base (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
restoreId | path | string (uuid) | yes |
Responses
200Successidstring (uuid) requiredsnapshotIdstring (uuid) requiredstatus"running" | "done" | "failed" requiredbaseobject | null requiredidstring (uuid) requiredworkspaceIdstring (uuid) requirednamestring requireddescriptionstring | null requirediconstring | null requiredcolorstring | null requiredrole"owner" | "creator" | "editor" | "commenter" | "read_only" requiredcreatedAtstring (date-time) requiredupdatedAtstring (date-time) required
errorstring | null requiredcreatedAtstring requiredfinishedAtstring | null required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)
Delete a snapshot
DELETE /api/bases/{baseId}/snapshots/{snapshotId}
Access: base:snapshot on the base (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
snapshotId | path | string (uuid) | yes |
Responses
204Success, no content401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)
Change how long the workspace's base snapshots are kept (owners)
PATCH /api/workspaces/{workspaceId}/snapshot-settings
Access: workspace:update on the workspace (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
workspaceId | path | string | yes |
Request body
retentionDaysinteger required
Responses
200SuccessretentionDaysinteger required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)