Mprove
.json
CancelQueries
POST/api/ToBackendCancelQueries

Cancel running queries for specified mconfigs

Request Body

application/json

Response Body

application/json

curl -X POST "http://localhost:3000/api/ToBackendCancelQueries" \  -H "Content-Type: application/json" \  -d '{    "info": {      "name": "api/ToBackendCancelQueries",      "traceId": "string",      "idempotencyKey": "string"    },    "payload": {      "projectId": "string",      "repoId": "string",      "branchId": "string",      "envId": "string",      "mconfigIds": [        "string"      ]    }  }'
{
  "info": {
    "path": "/api/ToBackendCancelQueries",
    "method": "POST",
    "mproveVersion": "string",
    "duration": 0,
    "status": "Ok",
    "traceId": "string",
    "error": null
  },
  "payload": {
    "queries": [
      {
        "projectId": "string",
        "envId": "string",
        "connectionId": "string",
        "connectionType": "PostgreSQL",
        "queryId": "string",
        "reportId": "string",
        "reportStructId": "string",
        "sql": "string",
        "apiMethod": "POST",
        "apiUrl": "string",
        "apiBody": null,
        "status": "New",
        "data": null,
        "lastRunBy": "string",
        "lastRunTs": -9007199254740991,
        "lastCancelTs": -9007199254740991,
        "lastCompleteTs": -9007199254740991,
        "lastCompleteDuration": 0,
        "lastErrorMessage": "string",
        "lastErrorTs": -9007199254740991,
        "queryJobId": "string",
        "bigqueryQueryJobId": "string",
        "bigqueryConsecutiveErrorsGetJob": -9007199254740991,
        "bigqueryConsecutiveErrorsGetResults": -9007199254740991,
        "serverTs": -9007199254740991
      }
    ]
  }
}