Update a draft (deep-merge patch, or replace the config) — returns an inline preview image
update_assetconfigPatch is DEEP-MERGED: objects merge recursively, arrays replace wholesale, null clears a key — send only what changes. To REMOVE keys (drop document.aspect, delete one of texts[]) pass config instead: it REPLACES the whole config (get_asset returns the current one to edit). data (if given) replaces rows wholesale. Requires expectedVersion from the last envelope; on 409 re-merge onto the returned current. Updating does NOT publish by default — pass publish: true to publish in the same call, or call publish_asset separately.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| data | No | ||
| brand | No | ||
| title | No | ||
| config | No | REPLACES the whole config — the way to remove keys; applied before configPatch if both are given | |
| publish | No | true = publish immediately after this update succeeds (one call instead of two) | |
| showcase | No | Offer this chart as a template in the public gallery and list_templates (once published). Workspace keys only. | |
| configPatch | No | Deep-merged onto the current config | |
| expectedVersion | Yes |