Error 400 uploading dashboard

Hi! I’m trying to upload the next dashboard to grafana, however the error says that it needs a name. I’ve dowloaded it first, I deleted it and then I wanted to uploaded it. Send some help please! Thank you very much. And this is the error:

{
  "meta": {
    "type": "db",
    "canSave": true,
    "canEdit": true,
    "canAdmin": true,
    "canStar": true,
    "slug": "replace_master_bms-automatico",
    "url": "/d/W-BPM21-00019/replace_master_bms-automatico",
    "expires": "0001-01-01T00:00:00Z",
    "created": "2021-11-09T10:20:11Z",
    "updated": "2021-11-09T10:21:07Z",
    "updatedBy": "",
    "createdBy": "",
    "version": 2,
    "hasAcl": false,
    "isFolder": false,
    "folderId": 0,
    "folderUid": "",
    "folderTitle": "General",
    "folderUrl": "",
    "provisioned": false,
    "provisionedExternalId": ""
  },
  "dashboard": {
    "annotations": {
      "list": [
        {
          "builtIn": 1,
          "datasource": "-- Grafana --",
          "enable": true,
          "hide": true,
          "iconColor": "rgba(0, 211, 255, 1)",
          "name": "Annotations & Alerts",
          "type": "dashboard"
        }
      ]
    },
    "editable": true,
    "gnetId": null,
    "graphTooltip": 0,
    "id": null,
    "links": [],
    "panels": [
      {
        "collapsed": true,
        "datasource": null,
        "gridPos": {
          "h": 1,
          "w": 24,
          "x": 0,
          "y": 0
        },
        "id": 14,
        "panels": [
          {
            "datasource": null,
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "palette-classic"
                },
                "custom": {
                  "hideFrom": {
                    "legend": false,
                    "tooltip": false,
                    "viz": false
                  }
                },
                "mappings": [
                  {
                    "options": {
                      "0": {
                        "color": "rgba(255, 255, 255, 1)",
                        "index": 0,
                        "text": "Init"
                      },
                      "1": {
                        "color": "rgba(49, 153, 255, 1)",
                        "index": 1,
                        "text": "Ready"
                      },
                      "2": {
                        "color": "rgba(83, 217, 64, 1)",
                        "index": 2,
                        "text": "Active"
                      },
                      "3": {
                        "color": "rgba(235, 57, 57, 1)",
                        "index": 3,
                        "text": "Failure"
                      },
                      "null": {
                        "color": "semi-dark-yellow",
                        "index": 4,
                        "text": "Empty"
                      }
                    },
                    "type": "value"
                  }
                ],
                "unit": "dateTimeAsIso"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 6,
              "w": 5,
              "x": 0,
              "y": 1
            },
            "id": 18,
            "options": {
              "displayLabels": [
                "value"
              ],
              "legend": {
                "displayMode": "hidden",
                "placement": "bottom",
                "values": [
                  "value"
                ]
              },
              "pieType": "pie",
              "reduceOptions": {
                "calcs": [
                  "last"
                ],
                "fields": "",
                "values": false
              },
              "tooltip": {
                "mode": "multi"
              }
            },
            "pluginVersion": "8.0.5",
            "targets": [
              {
                "query": "SELECT last(batteryStatus_MainStatus)\nFROM \"autogen\".\"W-BPM21-00019\"",
                "rawQuery": true,
                "refId": "A"
              }
            ],
            "title": "System Status",
            "transformations": [],
            "type": "piechart"
          },
          {
            "datasource": null,
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "displayName": "SoH",
                "mappings": [],
                "max": 100,
                "min": 70,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "semi-dark-orange",
                      "value": null
                    },
                    {
                      "color": "light-blue",
                      "value": 80
                    },
                    {
                      "color": "light-yellow",
                      "value": 90
                    }
                  ]
                },
                "unit": "percent"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 6,
              "w": 5,
              "x": 5,
              "y": 1
            },
            "id": 24,
            "options": {
              "reduceOptions": {
                "calcs": [
                  "mean"
                ],
                "fields": "",
                "values": false
              },
              "showThresholdLabels": false,
              "showThresholdMarkers": true,
              "text": {}
            },
            "pluginVersion": "8.0.5",
            "targets": [
              {
                "query": "SELECT last(\"SoH\") \nFROM \"autogen\".\"W-BPM21-00019\"",
                "rawQuery": true,
                "refId": "A"
              }
            ],
            "transformations": [
              {
                "id": "calculateField",
                "options": {
                  "mode": "reduceRow",
                  "reduce": {
                    "include": [
                      "W-BPM21-00019.last"
                    ],
                    "reducer": "mean"
                  },
                  "replaceFields": true
                }
              }
            ],
            "type": "gauge"
          },
          {
            "datasource": null,
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "displayName": "SoC",
                "mappings": [],
                "max": 100,
                "min": 0,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "super-light-blue",
                      "value": null
                    },
                    {
                      "color": "super-light-green",
                      "value": 15
                    },
                    {
                      "color": "semi-dark-green",
                      "value": 60
                    },
                    {
                      "color": "dark-green",
                      "value": 85
                    },
                    {
                      "color": "semi-dark-red",
                      "value": 95
                    }
                  ]
                },
                "unit": "percent"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 6,
              "w": 5,
              "x": 10,
              "y": 1
            },
            "id": 26,
            "options": {
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showThresholdLabels": false,
              "showThresholdMarkers": true,
              "text": {}
            },
            "pluginVersion": "8.0.5",
            "targets": [
              {
                "query": "SELECT last(\"SoC\") \nFROM \"autogen\".\"W-BPM21-00019\"",
                "rawQuery": true,
                "refId": "A"
              }
            ],
            "transformations": [
              {
                "id": "calculateField",
                "options": {
                  "mode": "reduceRow",
                  "reduce": {
                    "include": [
                      "W-BPM21-00019.last"
                    ],
                    "reducer": "mean"
                  },
                  "replaceFields": true
                }
              }
            ],
            "type": "gauge"
          },
          {
            "datasource": null,
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "custom": {
                  "align": "auto",
                  "displayMode": "auto"
                },
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                }
              },
              "overrides": []
            },
            "gridPos": {
              "h": 6,
              "w": 9,
              "x": 15,
              "y": 1
            },
            "id": 22,
            "options": {
              "showHeader": true
            },
            "pluginVersion": "8.0.5",
            "targets": [
              {
                "groupBy": [
                  {
                    "params": [
                      "$__interval"
                    ],
                    "type": "time"
                  },
                  {
                    "params": [
                      "null"
                    ],
                    "type": "fill"
                  }
                ],
                "measurement": "W-BPM21-00019",
                "orderByTime": "ASC",
                "policy": "default",
                "query": "SELECT event_code, event_descr, event_cells\nFROM \"autogen\".\"W-BPM21-00019\"\nWHERE $timeFilter \n",
                "rawQuery": true,
                "refId": "A",
                "resultFormat": "table",
                "select": [
                  [
                    {
                      "params": [
                        "event_0"
                      ],
                      "type": "field"
                    }
                  ]
                ],
                "tags": []
              }
            ],
            "title": "Events Pannel",
            "type": "table"
          },
          {
            "datasource": null,
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "displayName": "Hardware",
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                },
                "unit": "none"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 1,
              "w": 5,
              "x": 0,
              "y": 7
            },
            "id": 33,
            "options": {
              "colorMode": "value",
              "graphMode": "area",
              "justifyMode": "auto",
              "orientation": "vertical",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "text": {
                "titleSize": 20,
                "valueSize": 30
              },
              "textMode": "auto"
            },
            "pluginVersion": "8.0.5",
            "targets": [
              {
                "alias": "",
                "query": "SELECT  last(hw) as \"Hardware\"\nFROM \"autogen\".\"W-BPM21-00019\"\nWHERE $timeFilter",
                "rawQuery": true,
                "refId": "A",
                "resultFormat": "time_series"
              }
            ],
            "timeFrom": null,
            "timeShift": null,
            "transformations": [],
            "type": "stat"
          },
          {
            "datasource": null,
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "displayName": "Voltage",
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "dark-orange",
                      "value": null
                    }
                  ]
                },
                "unit": "volt"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 6,
              "w": 5,
              "x": 5,
              "y": 7
            },
            "id": 28,
            "options": {
              "reduceOptions": {
                "calcs": [
                  "mean"
                ],
                "fields": "",
                "values": false
              },
              "showThresholdLabels": false,
              "showThresholdMarkers": true,
              "text": {}
            },
            "pluginVersion": "8.0.5",
            "targets": [
              {
                "query": "SELECT last(\"battery_voltage\") \nFROM \"autogen\".\"W-BPM21-00019\"",
                "rawQuery": true,
                "refId": "A"
              }
            ],
            "transformations": [
              {
                "id": "calculateField",
                "options": {
                  "mode": "reduceRow",
                  "reduce": {
                    "include": [
                      "W-BPM21-00019.last"
                    ],
                    "reducer": "mean"
                  },
                  "replaceFields": true
                }
              }
            ],
            "type": "gauge"
          },
          {
            "datasource": null,
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "decimals": 0,
                "displayName": "Current",
                "mappings": [],
                "max": 36,
                "min": -36,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "semi-dark-blue",
                      "value": null
                    },
                    {
                      "color": "semi-dark-yellow",
                      "value": 0
                    }
                  ]
                },
                "unit": "amp"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 6,
              "w": 5,
              "x": 10,
              "y": 7
            },
            "id": 30,
            "options": {
              "reduceOptions": {
                "calcs": [
                  "last"
                ],
                "fields": "",
                "values": false
              },
              "showThresholdLabels": false,
              "showThresholdMarkers": true,
              "text": {}
            },
            "pluginVersion": "8.0.5",
            "targets": [
              {
                "query": "SELECT last(\"battery_current\") \nFROM \"autogen\".\"W-BPM21-00019\"",
                "rawQuery": true,
                "refId": "A"
              }
            ],
            "transformations": [
              {
                "id": "calculateField",
                "options": {
                  "mode": "reduceRow",
                  "reduce": {
                    "include": [
                      "W-BPM21-00019.last"
                    ],
                    "reducer": "sum"
                  },
                  "replaceFields": true
                }
              }
            ],
            "type": "gauge"
          },
          {
            "datasource": null,
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "custom": {
                  "align": "auto",
                  "displayMode": "auto"
                },
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                }
              },
              "overrides": []
            },
            "gridPos": {
              "h": 6,
              "w": 9,
              "x": 15,
              "y": 7
            },
            "id": 53,
            "options": {
              "showHeader": true
            },
            "pluginVersion": "8.0.5",
            "targets": [
              {
                "groupBy": [
                  {
                    "params": [
                      "$__interval"
                    ],
                    "type": "time"
                  },
                  {
                    "params": [
                      "null"
                    ],
                    "type": "fill"
                  }
                ],
                "measurement": "W-BPM21-00019",
                "orderByTime": "ASC",
                "policy": "default",
                "query": "SELECT error_code, error_descr, error_cells\nFROM \"autogen\".\"W-BPM21-00019\"\nWHERE $timeFilter \n",
                "rawQuery": true,
                "refId": "A",
                "resultFormat": "table",
                "select": [
                  [
                    {
                      "params": [
                        "event_0"
                      ],
                      "type": "field"
                    }
                  ]
                ],
                "tags": []
              }
            ],
            "title": "Errors Pannel",
            "type": "table"
          },
          {
            "datasource": null,
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "displayName": "Software",
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                },
                "unit": "none"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 1,
              "w": 5,
              "x": 0,
              "y": 8
            },
            "id": 34,
            "options": {
              "colorMode": "value",
              "graphMode": "area",
              "justifyMode": "auto",
              "orientation": "vertical",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "text": {
                "titleSize": 20,
                "valueSize": 30
              },
              "textMode": "auto"
            },
            "pluginVersion": "8.0.5",
            "targets": [
              {
                "alias": "",
                "query": "SELECT  last(sw) as \"Software\"\nFROM \"autogen\".\"W-BPM21-00019\"\nWHERE $timeFilter",
                "rawQuery": true,
                "refId": "A",
                "resultFormat": "time_series"
              }
            ],
            "timeFrom": null,
            "timeShift": null,
            "transformations": [],
            "type": "stat"
          },
          {
            "datasource": null,
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                },
                "unit": "dateTimeAsIso"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 4,
              "w": 5,
              "x": 0,
              "y": 9
            },
            "id": 16,
            "options": {
              "colorMode": "value",
              "graphMode": "area",
              "justifyMode": "auto",
              "orientation": "auto",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "/^Time$/",
                "values": false
              },
              "text": {
                "valueSize": 30
              },
              "textMode": "auto"
            },
            "pluginVersion": "8.0.5",
            "targets": [
              {
                "query": "SELECT last(battery_current)\nFROM \"autogen\".\"W-BPM21-00019\"",
                "rawQuery": true,
                "refId": "A"
              }
            ],
            "title": "Last Data Received",
            "transformations": [
              {
                "id": "calculateField",
                "options": {
                  "mode": "reduceRow",
                  "reduce": {
                    "include": [
                      "Time",
                      "W-BPM21-00019.last"
                    ],
                    "reducer": "lastNotNull"
                  },
                  "replaceFields": true
                }
              }
            ],
            "type": "stat"
          }
        ],
        "title": "Battery Status",
        "type": "row"
      },{
        "collapsed": true,
        "datasource": null,
        "gridPos": {
          "h": 1,
          "w": 24,
          "x": 0,
          "y": 28
        },
        "id": 2,
        "panels": [
          {
            "alert": {
              "alertRuleTags": {},
              "conditions": [
                {
                  "evaluator": {
                    "params": [
                      2.5
                    ],
                    "type": "gt"
                  },
                  "operator": {
                    "type": "and"
                  },
                  "query": {
                    "params": [
                      "A",
                      "5m",
                      "now"
                    ]
                  },
                  "reducer": {
                    "params": [],
                    "type": "last"
                  },
                  "type": "query"
                }
              ],
              "executionErrorState": "alerting",
              "for": "0",
              "frequency": "1s",
              "handler": 1,
              "name": "Failure Alert alert",
              "noDataState": "no_data",
              "notifications": []
            },
            "aliasColors": {},
            "bars": false,
            "dashLength": 10,
            "dashes": false,
            "datasource": null,
            "fill": 0,
            "fillGradient": 0,
            "gridPos": {
              "h": 11,
              "w": 11,
              "x": 0,
              "y": 7
            },
            "hiddenSeries": false,
            "id": 52,
            "legend": {
              "avg": false,
              "current": false,
              "max": false,
              "min": false,
              "show": true,
              "total": false,
              "values": false
            },
            "lines": true,
            "linewidth": 1,
            "nullPointMode": "connected",
            "options": {
              "alertThreshold": true
            },
            "percentage": false,
            "pluginVersion": "8.0.5",
            "pointradius": 2,
            "points": false,
            "renderer": "flot",
            "seriesOverrides": [],
            "spaceLength": 10,
            "stack": false,
            "steppedLine": false,
            "targets": [
              {
                "groupBy": [
                  {
                    "params": [
                      "$__interval"
                    ],
                    "type": "time"
                  },
                  {
                    "params": [
                      "null"
                    ],
                    "type": "fill"
                  }
                ],
                "measurement": "W-BPM21-00019",
                "orderByTime": "ASC",
                "policy": "default",
                "query": "SELECT last(\"batteryStatus_MainStatus\") \nFROM \"W-BPM21-00019\"\nWHERE $timeFilter GROUP BY time($__interval) fill(null)",
                "rawQuery": true,
                "refId": "A",
                "resultFormat": "time_series",
                "select": [
                  [
                    {
                      "params": [
                        "batteryStatus_MainStatus"
                      ],
                      "type": "field"
                    }
                  ]
                ],
                "tags": []
              }
            ],
            "thresholds": [
              {
                "colorMode": "critical",
                "fill": true,
                "line": true,
                "op": "gt",
                "value": 2.5,
                "visible": true
              }
            ],
            "timeFrom": null,
            "timeRegions": [],
            "timeShift": null,
            "title": "Failure Alert",
            "tooltip": {
              "shared": true,
              "sort": 0,
              "value_type": "individual"
            },
            "type": "graph",
            "xaxis": {
              "buckets": null,
              "mode": "time",
              "name": null,
              "show": true,
              "values": []
            },
            "yaxes": [
              {
                "$$hashKey": "object:114",
                "format": "short",
                "label": null,
                "logBase": 1,
                "max": "3",
                "min": "0",
                "show": true
              },
              {
                "$$hashKey": "object:115",
                "format": "short",
                "label": null,
                "logBase": 1,
                "max": null,
                "min": null,
                "show": true
              }
            ],
            "yaxis": {
              "align": false,
              "alignLevel": null
            }
          }
        ],
        "title": "Customized",
        "type": "row"
      }
    ],
    "refresh": false,
    "schemaVersion": 30,
    "style": "dark",
    "tags": [],
    "templating": {
      "list": []
    },
    "time": {
      "from": "now-7d",
      "to": "now"
    },
    "timepicker": {},
    "timezone": "",
    "title": "W-BPM21-00019 AUTOMATICO",
    "uid": "W-BPM21-00019",
    "version": 2
  }
}

I have solved it put I will let this post because someone could have had the same problem. To upload dashboards, it mustn’t exit the meta section nor the line: “dashboard”:
It sholud start with: { “annotations”