add_nodes_to_view
Add multiple visual nodes to an ArchiMate view in a single API call, with optional rollback on error for safe batch updates.
Instructions
Add multiple visual nodes to a view in one call.
Each node item supports the same fields as `add_node_to_view`. Both
short and long field names are accepted (`element` or `element_id`,
`id` or `node_id`).
Node item shape:
```
{
"id": "id-customer-node", # optional stable ref
"element": "id-customer", # required (alias: element_id)
"x": 40, "y": 40, # optional, auto-placed if absent
"width": 160, "height": 80 # optional, defaults shown
}
```
Args:
view_id: ID of the target view.
nodes: List of node item objects.
rollback_on_error: When true (default), restore the previous
view state if any item fails.
Returns:
Success envelope with `data.node_ids`, `data.count`, and
`data.rollback_on_error`.
Errors:
`ModelOperationError` (view not found / duplicate node_id) and
`ElementNotFoundError` for the first failing item.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodes | Yes | ||
| view_id | Yes | ||
| rollback_on_error | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||