import_org
Imports an org chart from an indented text outline (one line per block, the indentation sets the hierarchy — e.g. "- Holding\n - Subsidiary A\n - BU1"). Each depth gets a default type (root='groupe' (group), level 1='filiale' (subsidiary), level 2='sous-filiale' (sub-subsidiary), level 3+='node') — adjustable afterwards with update_cell. Mode 'replace' (default) replaces the whole existing org chart. Mode 'merge' adds the blocks that are missing by name without touching the existing ones. The placement is recomputed automatically after the import (equivalent to auto_layout_org).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'replace' (default) replaces the whole existing org chart (kind='org') with the imported outline. 'merge' adds the blocks that are missing by name (case- and whitespace-insensitive) without touching the existing ones — a block already present is reused as the parent of its new children. | |
| text | Yes | The indented outline to import, one line per block (e.g. "- Holding\n - Subsidiary A\n - BU1"). The indentation sets the hierarchy. | |
| expectedProjectId | No | UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted. |