add_connection_to_view
Add a visual connection for a relationship in an ArchiMate view. Requires both endpoint nodes to already be in the view.
Instructions
Add a visual connection for a relationship in a view.
Both endpoint elements of the relationship must already be visible
as nodes in the view. Use `add_node_to_view` to add missing
endpoints first, or call `connect_visible_relationships` to draw
every relationship whose endpoints are already visible.
Args:
view_id: ID of the target view.
relationship_id: ID of the relationship to render.
connection_id: Optional stable visual connection ID. When
omitted a UUID is generated.
Returns:
Success envelope with `data.connection_id` containing the
visual connection UUID.
Errors:
`ModelOperationError` when `view_id` is unknown, when either
endpoint node is not present in the view, or when
`connection_id` is duplicated.
`RelationshipNotFoundError` when `relationship_id` is unknown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view_id | Yes | ||
| connection_id | No | ||
| relationship_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||