---
title: "Save network topology for authenticated user"
method: POST
path: "/network-topology"
tags: ["Network Topology"]
---

# Save network topology for authenticated user

`POST /network-topology`

Saves or updates the network topology graph. Uses upsert logic - creates new record if none exists, updates existing record otherwise.

## Request body

- object
  - `topology` object, required — Network topology data containing nodes and edges
    - `nodes` unknown[] — Array of graph nodes (hosts and groups)
      - unknown
    - `edges` unknown[] — Array of graph edges (connections)
      - unknown

## Response `200`

Topology saved successfully

- object
  - `success` boolean

## Other responses

- `400` — Invalid topology data
- `401` — User not authenticated
- `500` — Server error

---

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