---
title: "Rebuild nodes from schematic drawings (destructive)"
method: POST
path: "/api/v0/knowledge-graphs/{kg_id}/nodes/project"
tags: ["Knowledge Graphs"]
---

# Rebuild nodes from schematic drawings (destructive)

`POST /api/v0/knowledge-graphs/{kg_id}/nodes/project`

Drops EVERY node and edge in the knowledge graph — including manually created ones — and re-projects its schematic drawings from scratch. If extraction provenance, current/historical claims, or resolutions exist, the request returns 409 unless discard_evidence=true explicitly permits their permanent deletion. Export an archive before discarding them. 409 when no document carries a projectable schematic graph (nothing would be rebuilt, so nothing is dropped).

## Path parameters

- `kg_id` string, uuid, required

## Query parameters

- `discard_evidence` boolean — Explicitly and permanently delete all extraction runs, extraction sources, current or historical attribute claims, and fact resolutions before rebuilding.

## Response `200`

Successful Response

- ProjectionResponse
  - `discipline` string, required — Which discipline projection ran (e.g. 'piping', 'electrical', 'instrument_loop', 'aircraft').
  - `drawings` integer, required — Number of schematic drawings the projection built from.
  - `nodes_created` integer, required
  - `edges_created` integer, required — Total edges created, across all types.
  - `nodes_by_type` object, required — Projected node counts keyed by type_id.
  - `edges_by_type` object, required — Projected edge counts keyed by edge_type_id (includes the represents grounding edges).

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/outerport/apis/outerport-api.md) · [All operations](https://skmtc.dev/outerport/apis/outerport-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/outerport/outerport-api/revisions/f565b46daaea/schema)
