Browse documentation

import_space

[Export and Import]

Validate a package against a pristine destination without changes. Apply imports atomically and adopts the source workspace ID. spaceId names the pre-import destination. New calls use the adopted ID; ambiguous-response retries retain the original payload and requestId.

Before you use this tool

apply writes into the destination workspace atomically. Run validate first.

Parameters

NameTypeRequiredDescription
modestringYesvalidate checks the package without changes. apply imports it atomically.
packagejsonYesThe package that export_space returned.
spaceIdstringYesThe pristine destination workspace. Discover it on the destination store before importing.
ifSnapshotRevisionstringNoThe destination workspace's snapshotRevision, required for apply.
requestIdstringNoA fresh UUID, required for apply. Retry an ambiguous apply with the same requestId and package.