Reference
Repairs
The repairs endpoints of the HTTP API.
GET /repairs
List dashboards whose latest version still has failing or placeholder panels.
Editors and Admins can call this endpoint. It lists every dashboard, in folders the caller can see, whose latest version has unverified panels or variables or placeholder panels, most recently updated first. A dashboard leaves the list once nothing in it fails and it holds no placeholder. repair is the latest repair the agent was asked for on the dashboard, by anyone, or null.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
folder_id |
query | string (uuid) |
Only dashboards in this folder; a folder the caller cannot see answers 404 not_found. |
limit |
query | integer |
Between 1 and 100. Default 50. |
cursor |
query | string |
Responses
| Status | Description | Body |
|---|---|---|
200 |
One page of dashboards to repair. | RepairList |
400 |
The request is malformed or fails validation. | Error |
401 |
Authentication is missing or invalid. | Error |
403 |
The caller is not allowed to perform the request; a role that is too low is code forbidden_role. |
Error |
404 |
The resource does not exist, or the caller cannot see it; the two are never told apart. | Error |
500 |
The server failed to handle the request. | Error |
POST /repairs
Queue the agent to repair the failing panels of dashboards.
Editors and Admins can call this endpoint. Send dashboard_ids to repair those dashboards, or all to repair every dashboard the list shows, in folder_id when it is set. Each dashboard gets one ordinary revision with source prompt and the fixed prompt “Repair every panel and variable listed as unverified so its query runs and returns data; keep every other panel unchanged and never delete an unverified panel.” The agent never edits a placeholder panel, so a dashboard whose only problems are placeholders is skipped. A dashboard is skipped with a reason: active when a revision is already queued or running on it, nothing_to_repair when it has no unverified panel or variable, not_found when it does not exist or is in a folder the caller cannot see, forbidden_role when the caller cannot edit it, provisioned when it is a starter dashboard the server keeps current with each release, and queue_full when the caller already has 20 repairs queued or running. Without a configured LLM provider the endpoint answers 503 agent_unavailable.
Request body
application/json, required.
A RequestRepairsRequest object.
Responses
| Status | Description | Body |
|---|---|---|
202 |
The repairs that were queued and the dashboards that were skipped. | RepairsQueued |
400 |
The request is malformed or fails validation. | Error |
401 |
Authentication is missing or invalid. | Error |
403 |
The caller is not allowed to perform the request; a role that is too low is code forbidden_role. |
Error |
404 |
The resource does not exist, or the caller cannot see it; the two are never told apart. | Error |
413 |
The request body exceeds the size limit. | Error |
500 |
The server failed to handle the request. | Error |
503 |
No LLM provider is configured (agent_unavailable). |
Error |
Generated from api/openapi.yaml at c770e5e0. Report a problem.