Skip to main content

ImportCk

Schedules an import job for construction kit files. File is specified using -f argument. To wait for job, use -w argument. Accepted: a compiled CK model (json, yaml or a zip of one) or a zip of the source ConstructionKit/ folder (a zip that holds ckModel.yaml); the service compiles a source zip like ValidateCk and refuses compile errors with CK_MODEL_COMPILE_FAILED (file and element of each error) before anything is imported. The tenant upgrade guard refuses a file that would break an installed model (also for System) with CK_UPGRADE_BLOCKED; --forceBreakingUpdate overrides it. Requires the tenant role DataModelManagement (TenantOwners carry it); otherwise 403 DataModelManagementRequired.

Examples​

Basic usage:

octo-cli -c ImportCk -f "./my-ck-model.yaml" -w

Import a zip of the source ConstructionKit/ folder; the service compiles it first:

octo-cli -c ImportCk -f "./my-ck-source.zip" -w

Import although the file breaks an installed model (deliberate override of the tenant upgrade guard):

octo-cli -c ImportCk -f "./my-ck-model.yaml" -fbu

Options​

ShortLongRequiredDescription
-f--fileyesFile to import: a compiled CK model (.json, .yaml or a .zip of one) or a .zip of the source ConstructionKit/ folder
-fbu--forceBreakingUpdatenoImport although the file would break an installed CK model (tenant upgrade guard, also for System).
The broken models become ResolveFailed or the tenant may fail to load. Without it the service refuses with CK_UPGRADE_BLOCKED and nothing is changed. Needs the data model management role.
-w--waitnoWait for a import job to complete