---
title: "Load Layer 0 — MaStR assets into a ZNP project graph"
method: POST
path: "/api/znp/projects/:projectId/layer0"
tags: ["Zielnetzplanung (ZNP)"]
---

# Load Layer 0 — MaStR assets into a ZNP project graph

`POST /api/znp/projects/:projectId/layer0`

## Request

- Base URL: `https://api.cernion.de`
- URL: `https://api.cernion.de/api/znp/projects/:projectId/layer0`
- Auth: none declared

Adds MaStR installation nodes and CONTRIBUTES_LOAD edges to the in-memory graph. All assets are wired to the virtual substation SUB_1 in Layer 0 because MaStR contains no network topology (physical wiring is resolved in Layer 1 / Layer 2). Duplicate mastrNummer entries are skipped (idempotent). Returns counts of added nodes and edges.

## Path parameters

- `projectId` string, required

## Query parameters

- `token` string

## Request body

- object
  - `assets` object[], required
    - `mastrNummer` string, required
    - `capacity` number, required: kW
    - `assetType` string
    - `lat` number
    - `lon` number
    - `status` string, nullable: MaStR Betriebsstatus (optional, unvalidated string — MaStR date formats vary).
    - `commissioningDate` string, nullable: Commissioning date string (unvalidated — MaStR date formats vary).
    - `fernsteuerbarkeitDv` boolean, nullable: Optional controlability marker from MaStR exports (stored as normalized boolean).
    - `fernsteuerbarkeitSonstige` boolean, nullable: Optional fallback controlability marker from MaStR exports.
  - `token` string: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.

## Response `200`

Successful response

- object

---

[API](https://skmtc.dev/cernion/apis/cernion-energy-tools-api.md) · [All operations](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/revisions/cdb94473b538?raw)
