UpdateBlueprint
Applies a blueprint update to the active tenant. Tenant values the update would blank are kept unless confirmed. Requires the tenant role DataModelManagement (TenantOwners carry it); otherwise 403 DataModelManagementRequired.
Examples
Update safely: tenant values the seed would blank are kept and listed:
octo-cli -c UpdateBlueprint -tv "Eda.Adapter-1.2.0"
Blank exactly the confirmed attributes (rtId and attribute from PreviewBlueprintUpdate):
octo-cli -c UpdateBlueprint `
-tv "Eda.Adapter-1.2.0" `
-cb "65a1b2c3d4e5f60718293a4b:configuration" `
-cb "65a1b2c3d4e5f60718293a4c:password"
Blank every listed attribute (loud warning; prefer --confirm-blanking):
octo-cli -c UpdateBlueprint -tv "Eda.Adapter-1.2.0" -ab
Update although the blueprint's CK models would break installed models (they become ResolveFailed):
octo-cli -c UpdateBlueprint -tv "Eda.Adapter-1.2.0" -f
Options
| Short | Long | Required | Description |
|---|---|---|---|
-tv | --targetVersion | yes | Fully-qualified target blueprint id, e.g. 'MyBlueprint-2.0.0' |
-m | --updateMode | no | Update mode: Safe, Merge (default), Full, or Migration |
-dr | --dry-run | no | Simulate the update without persisting changes |
-ab | --allow-blanking | no | Confirm that the update may blank EVERY tenant value listed by PreviewBlueprintUpdate. Use --confirm-blanking to confirm single attributes instead. |
-cb | --confirm-blanking | no | Confirm blanking of one attribute: '<rtId>:<attribute>' as listed by PreviewBlueprintUpdate. Repeat the option for several attributes; everything not confirmed is kept. |
-f | --force | no | Update although the CK models of the target blueprint would break an installed CK model (tenant upgrade guard). Without it the service refuses with CK_UPGRADE_BLOCKED before the first change. Needs the data model management role. |
-fbu | --forceBreakingUpdate | no | Same as --force (the name InstallBlueprint uses, where --force means re-apply) |
Notes
A blueprint seed that carries an empty value, or omits an attribute, would clear what the tenant has entered.
Without --confirm-blanking or --allow-blanking the update still runs but keeps those tenant values; the command lists them and exits with code 0.
Run PreviewBlueprintUpdate first: it lists entity, attribute, reason and a kind/size summary of the current and incoming value (never the value).
--allow-blanking confirms every listed attribute and takes precedence over --confirm-blanking.
A --confirm-blanking pair that is not a blanking candidate is reported and ignored.
Tenant-owned seed entities (rtBlueprintLocked: false) are never rewritten; the command lists those left untouched and those the tenant deleted that stay deleted (key, type, rtId, no values).
The blanking Reason is printed as the service reports it: SeedEmpty, SeedOmitted, or ResetToDefault.
Archives the update adds are activated and new rollups are backfilled; the output lists each archive (activated, skipped with a reason, failed) and the backfill job ids. Archives that already existed are never touched.
Against services older than the blanking protection the update behaves as before and no blanking list is reported.
Tenant upgrade guard: the CK models the target blueprint installs or raises are judged as one set against the installed models. A set that would break an installed model is refused with CK_UPGRADE_BLOCKED before the first change (blockers are listed, nothing is changed); --force overrides it and needs the data model management role.
With --dry-run the blockers are listed and nothing is written, whether or not --force is given.