create_link

mutationSince v1.0

Create a link between two agents in a scenario — the simulation counterpart of a relationship. The relationship type and both agents must already exist. Applied immediately and broadcast to connected users in real-time.

Example Request

{"scenario_id": "scenario-uuid", "relationship_type_id": "rt-uuid", "source_agent_id": "a1", "target_agent_id": "a2"}

Example Response

{"success": true, "operation_count": 1, "versions": [45]}