{
  "openapi": "3.0.0",
  "info": {
    "title": "mprove backend",
    "description": "",
    "version": "12.0.27",
    "contact": {}
  },
  "paths": {
    "/api/ToBackendDeleteDashboard": {
      "post": {
        "operationId": "DeleteDashboardController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteDashboardRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteDashboardResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ToBackendDeleteDashboardRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteDashboardRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteDashboardRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteDashboardResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteDashboardResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteDashboardResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteDashboardRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteDashboard"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteDashboardRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "dashboardId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "dashboardId"
        ]
      },
      "ToBackendDeleteDashboardResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteDashboard"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteDashboardResponsePayload": {
        "type": "object",
        "properties": {
          "dashboardUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardUnit"
            }
          },
          "dashboardSpaceNodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendDeleteDashboardResponse__schema0"
            }
          }
        },
        "required": [
          "dashboardUnitDrafts",
          "dashboardSpaceNodes"
        ]
      },
      "DashboardUnit": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "dashboardUnit"
            ]
          },
          "id": {
            "type": "string"
          },
          "dashboardId": {
            "type": "string"
          },
          "draft": {
            "type": "boolean"
          },
          "title": {
            "type": "string"
          },
          "filePath": {
            "type": "string",
            "nullable": true
          },
          "space": {
            "type": "string",
            "nullable": true
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "accessRolesCombined": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string"
                },
                "isDirect": {
                  "type": "boolean"
                }
              },
              "required": [
                "role",
                "isDirect"
              ]
            }
          },
          "author": {
            "type": "string",
            "nullable": true
          },
          "canEditOrDeleteDashboard": {
            "type": "boolean"
          },
          "isFavorite": {
            "type": "boolean"
          },
          "spaceFullTitle": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "dashboardId",
          "draft",
          "title",
          "accessRoles",
          "accessRolesCombined",
          "canEditOrDeleteDashboard",
          "isFavorite",
          "spaceFullTitle"
        ]
      },
      "ToBackendDeleteDashboardResponse__schema0": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "spaceFolder"
                ]
              },
              "id": {
                "type": "string"
              },
              "space": {
                "type": "string"
              },
              "filePath": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "accessRoles": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "accessRolesCombined": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "string"
                    },
                    "isDirect": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "role",
                    "isDirect"
                  ]
                }
              },
              "isSynthetic": {
                "type": "boolean"
              },
              "modelId": {
                "type": "string",
                "nullable": true
              },
              "modelLabel": {
                "type": "string",
                "nullable": true
              },
              "children": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ToBackendDeleteDashboardResponse__schema0"
                }
              }
            },
            "required": [
              "type",
              "id",
              "space",
              "filePath",
              "title",
              "accessRoles",
              "accessRolesCombined",
              "isSynthetic",
              "children"
            ]
          },
          {
            "$ref": "#/components/schemas/SpaceUnit"
          }
        ]
      },
      "SpaceUnit": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "spaceUnit"
            ]
          },
          "id": {
            "type": "string"
          },
          "unitId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "filePath": {
            "type": "string",
            "nullable": true
          },
          "space": {
            "type": "string",
            "nullable": true
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "accessRolesCombined": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string"
                },
                "isDirect": {
                  "type": "boolean"
                }
              },
              "required": [
                "role",
                "isDirect"
              ]
            }
          },
          "author": {
            "type": "string",
            "nullable": true
          },
          "canEditOrDeleteUnit": {
            "type": "boolean"
          },
          "isFavorite": {
            "type": "boolean"
          },
          "spaceFullTitle": {
            "type": "string"
          },
          "modelId": {
            "type": "string",
            "nullable": true
          },
          "modelLabel": {
            "type": "string",
            "nullable": true
          },
          "chartType": {
            "type": "string",
            "enum": [
              "table",
              "line",
              "bar",
              "scatter",
              "pie",
              "single",
              "pivot_table"
            ],
            "nullable": true
          },
          "iconPath": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "type",
          "id",
          "unitId",
          "title",
          "accessRoles",
          "accessRolesCombined",
          "canEditOrDeleteUnit",
          "isFavorite",
          "spaceFullTitle"
        ]
      }
    }
  }
}
