APIDashboards
Validate a dashboard
Check dashboard MDX, static files, layout, query shapes, and your permission without saving or running queries. Optional: create and update always validate too. Each diagnostic carries its source line and column, component id, code, and repair hint.
POST https://api.sazabi.com/v1/dashboards/validate
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/dashboards/validate" \ -H "Content-Type: application/json" \ -d '{ "input": { "source": "string" } }'{ "valid": true, "diagnostics": [ { "code": "string", "message": "string", "severity": "error", "line": -9007199254740991, "column": -9007199254740991, "componentId": "string", "filePath": "string", "artifactPath": [ "string" ], "propPath": [ "string" ], "repairHint": "string" } ]}