---
title: "AddSwarmEdgeBody"
description: "Request body for a SwarmEdge operation."
section: "Reference"
group: "Types"
order: 218
---

## Definition

```ts
interface AddSwarmEdgeBody {
  swarmVersionId: string;
  sourceNodeId: string;
  targetNodeId: string;
}
```

## Fields

| Field            | Type     | Notes                                          |
| ---------------- | -------- | ---------------------------------------------- |
| `swarmVersionId` | `string` | `required` — Swarm version to add the edge to. |
| `sourceNodeId`   | `string` | `required` — Source node ID                    |
| `targetNodeId`   | `string` | `required` — Target node ID                    |
