---
title: "Generate Diagnosis Report"
method: POST
path: "/api/diagnosis/generate"
tags: ["Diagnosis"]
---

# Generate Diagnosis Report

`POST /api/diagnosis/generate`

## Request

- Base URL: `https://api.fiber.ac` (the document declares no server; this is the origin it was published from)
- URL: `https://api.fiber.ac/api/diagnosis/generate`
- Auth: none declared

Run auto-diagnosis on a specific port. Analyzes 24h history, identifies root cause (thermal/connector/hardware/coherent degradation), calculates topology impact, and recommends actions. Requires 'diagnosis' permission. Request body requires 'switch_name' and 'port_name' fields. Reports are persisted in PostgreSQL for later retrieval.

## Request body

- object

## Response `200`

Full diagnosis report with root cause analysis, 24h telemetry summary, topology impact, and recommended actions

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fiber-ac/apis/fiber-api.md) · [All operations](https://skmtc.dev/fiber-ac/apis/fiber-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fiber-ac/apis/fiber-api/revisions/58267250d793?raw)
