---
title: "Add Edge"
method: POST
path: "/knowledge/graph/edges"
tags: ["Knowledge Plane"]
---

# Add Edge

`POST /knowledge/graph/edges`

## Request

- Base URL: `https://api.crowelogic.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.crowelogic.com/knowledge/graph/edges`
- Auth: none declared

Add a relationship to the knowledge graph.

## Request body

- EdgeRequest
  - `from_type` string, required
  - `from_id` string, required
  - `relation` string, required
  - `to_type` string, required
  - `to_id` string, required
  - `weight` number
  - `evidence` string, nullable

## Response `200`

Successful Response

- KnowledgeEdge
  - `id` string
  - `from_type` string, required
  - `from_id` string, required
  - `relation` string, required
  - `to_type` string, required
  - `to_id` string, required
  - `weight` number
  - `evidence` string, nullable
  - `metadata` object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/crowelogic/apis/crowe-logic-foundry.md) · [All operations](https://skmtc.dev/crowelogic/apis/crowe-logic-foundry/llms.txt) · [OpenAPI document](https://skmtc.dev/crowelogic/apis/crowe-logic-foundry/revisions/a3c1ef17f171?raw)
