Provisioning in Grafana 13 with v2 dashboards

Hey,

I’m trying to provision a v2 dashboard in Grafana 13. Grafana is deployed in Kubernetes, via helm chart. I’ve created a new provider:

  dashboardProviders:
    v2-dashboard-provider.yaml:
      apiVersion: 1
      providers:
        - name: 'v2-dashboards-provider'
          orgId: 1
          folder: 'Grafana 13 Tests'
          folderUid: ''
          type: file
          disableDeletion: false
          updateIntervalSeconds: 30
          allowUiUpdates: false
          options:
            path: /var/lib/grafana/v2-dashboards
            foldersFromFilesStructure: true

When I create a file /var/lib/grafana/v2-dashboards/dashboard.json in Kubernetes format as stated in docs:

I get the following log:
{"error":"Dashboard title cannot be empty","file":"/var/lib/grafana/v2-dashboards/dashboard.json","level":"error","logger":"provisioning.dashboard","msg":"failed to load dashboard from ","name":"v2-dashboards-provider","t":"2026-05-26T12:32:05.92426938Z","type":"file"}

All this while pasting example from documentation. While I create a file using a json model of a dashboard created in Grafana by hand, I get the following log:
{"error":"dashboard appears to be in v2 format. Please use the /apis/dashboard.grafana.app/v2 API","file":"/var/lib/grafana/v2-dashboards/dashboard.json","level":"error","logger":"provisioning.dashboard","msg":"failed to save dashboard","name":"v2-dashboards-provider","t":"2026-05-26T12:32:36.007358861Z","type":"file"}

Did I miss something?

Edit: I’ve also tried git sync feature but for now it ends with:

where those files contain the dashboards in v2 / dynamic schema (it loaded the kubernetes style dashboard from docs, but it’s still dashboard in v1 / old schema).

I think I got it. The culprit was the apiVersion, I tried to use “dashboard.grafana.app/v1”, with v2 schemas. When I changed it to “dashboard.grafana.app/v2”, provisioning via kubernetes schema started working.