Mprove
.json
Run

Run

POST/api/ToBackendRun

Run dashboards, charts, and reports in batch

Request Body

application/json

Response Body

application/json

curl -X POST "http://localhost:3000/api/ToBackendRun" \  -H "Content-Type: application/json" \  -d '{    "info": {      "name": "api/ToBackendRun",      "traceId": "string",      "idempotencyKey": "string"    },    "payload": {      "projectId": "string",      "repoId": "string",      "branchId": "string",      "envId": "string",      "wait": true,      "noDashboards": true,      "noCharts": true,      "getDashboards": true,      "getCharts": true,      "noReports": true,      "getReports": true    }  }'
{
  "info": {
    "path": "/api/ToBackendRun",
    "method": "POST",
    "mproveVersion": "string",
    "duration": 0,
    "status": "Ok",
    "traceId": "string",
    "error": null
  },
  "payload": {
    "charts": [
      {
        "title": "string",
        "chartId": "string",
        "url": "string",
        "query": {
          "queryId": "string",
          "status": "New",
          "lastErrorMessage": "string"
        }
      }
    ],
    "dashboards": [
      {
        "title": "string",
        "dashboardId": "string",
        "url": "string",
        "tiles": [
          {
            "title": "string",
            "query": {
              "queryId": "string",
              "status": "New",
              "lastErrorMessage": "string"
            }
          }
        ]
      }
    ],
    "errorCharts": [
      {
        "title": "string",
        "chartId": "string",
        "url": "string",
        "query": {
          "queryId": "string",
          "status": "New",
          "lastErrorMessage": "string"
        }
      }
    ],
    "errorDashboards": [
      {
        "title": "string",
        "dashboardId": "string",
        "url": "string",
        "tiles": [
          {
            "title": "string",
            "query": {
              "queryId": "string",
              "status": "New",
              "lastErrorMessage": "string"
            }
          }
        ]
      }
    ],
    "reports": [
      {
        "title": "string",
        "reportId": "string",
        "url": "string",
        "rows": [
          {
            "title": "string",
            "query": {
              "queryId": "string",
              "status": "New",
              "lastErrorMessage": "string"
            }
          }
        ]
      }
    ],
    "errorReports": [
      {
        "title": "string",
        "reportId": "string",
        "url": "string",
        "rows": [
          {
            "title": "string",
            "query": {
              "queryId": "string",
              "status": "New",
              "lastErrorMessage": "string"
            }
          }
        ]
      }
    ],
    "queriesStats": {
      "started": 0,
      "running": 0,
      "completed": 0,
      "error": 0,
      "canceled": 0
    }
  }
}

On this page