{
  "openapi": "3.0.0",
  "info": {
    "title": "mprove backend",
    "description": "",
    "version": "12.0.27",
    "contact": {}
  },
  "paths": {
    "/api/ToBackendDeleteChart": {
      "post": {
        "operationId": "DeleteChartController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteChartRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteChartResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ToBackendDeleteChartRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteChartRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteChartRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteChartResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteChartResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteChartResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteChartRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteChart"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteChartRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "chartId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "chartId"
        ]
      },
      "ToBackendDeleteChartResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteChart"
            ]
          },
          "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"
        ]
      },
      "ToBackendDeleteChartResponsePayload": {
        "type": "object",
        "properties": {
          "chartUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChartUnit"
            }
          },
          "chartSpaceNodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendDeleteChartResponse__schema0"
            }
          }
        },
        "required": [
          "chartUnitDrafts",
          "chartSpaceNodes"
        ]
      },
      "ChartUnit": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "chartUnit"
            ]
          },
          "id": {
            "type": "string"
          },
          "chartId": {
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "modelLabel": {
            "type": "string"
          },
          "chartType": {
            "type": "string",
            "enum": [
              "table",
              "line",
              "bar",
              "scatter",
              "pie",
              "single",
              "pivot_table"
            ]
          },
          "iconPath": {
            "type": "string",
            "nullable": true
          },
          "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
          },
          "canEditOrDeleteChart": {
            "type": "boolean"
          },
          "isFavorite": {
            "type": "boolean"
          },
          "spaceFullTitle": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "chartId",
          "modelId",
          "modelLabel",
          "chartType",
          "draft",
          "title",
          "accessRoles",
          "accessRolesCombined",
          "canEditOrDeleteChart",
          "isFavorite",
          "spaceFullTitle"
        ]
      },
      "ToBackendDeleteChartResponse__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/ToBackendDeleteChartResponse__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"
        ]
      }
    }
  }
}
