Create Workspace Restore Api
POST /workspace/restore
Restore a completed backup of this workspace as this key (its write grants apply): a dry run unless
dry_run is false.
Authorizations
Parameters
Header Parameters
Request Body required
Restore one completed backup of THIS workspace, by id. A record or report that is missing is added; one that exists is UPDATED to the backup’s values where they differ, through the same checks as an edit (an archived record the backup holds live is unarchived). Objects, fields, relationships, process lists, grants and links are only added. Nothing that exists is ever deleted or archived.
dry_run defaults to true: every step and check runs and is rolled back, and the counts say exactly what a
restore would add, update and leave unchanged. A real restore must send dry_run: false.
object
True (the default) writes nothing; send false to restore.
Responses
202
Successful Response
object
object
One page of the receipt.
One receipt line: the refused item (section and id; for a field error the field slug), a stable code, why it was refused and what fixes it. Never a value from the archive.
More conflicts happened than the receipt keeps (the first 5,000); conflict_count is exact.
Per archive section. A dry run’s counts are what the restore would do now.
object
What a restore did (or, for a dry run, would do) with one archive section. Every row of the section is counted
exactly once: created + updated + unchanged + conflicts + skipped is the section’s rows in the backup.
object
Not in the workspace by id: added.
Not restored by design (e.g. schema from a restricted archive).
In the workspace by id and left exactly as it is: it already holds the backup’s values, or its section is only added.
In the workspace by id with other values: written back to the backup’s values (records and reports only; every other section is only added, so this stays 0 there).
What a restore adds, updates and never touches, in one sentence.
Who asked. name and kind are shown to a workspace administrator only (anyone else lists only their own
jobs and reads is_you); name is the member’s display name, None for an API key or an unknown member.
counts summed over every section.
object
Not in the workspace by id: added.
Not restored by design (e.g. schema from a restricted archive).
In the workspace by id and left exactly as it is: it already holds the backup’s values, or its section is only added.
In the workspace by id with other values: written back to the backup’s values (records and reports only; every other section is only added, so this stays 0 there).
object
Whether there are more pages
Items per page
Current page number (1-indexed)
Total number of items
422
Validation Error