Grafana dashboard API not working well by using axios

Dashboards
Create / Update dashboard
POST /api/dashboards/db

What Grafana version are you using?
7.1.1

What datasource are you using?
elasticsearch

What did you do?
POST /api/dashboards/db
as in page https://grafana.com/docs/grafana/latest/http_api/dashboard/
Doing this creation(post) in postman and using Axios.
Axios post:
const options = { baseURL: GRAFANA_URL, headers: { "Content-Type": "application/json", Authorization:Bearer ${BEARER_KEY}`
}
}

axios.post("/api/dashboards/db", data, options)`

What was the expected result?
Both created the dashboard with same dashboard configure.

What happened instead?
Both created the dashboard but Axios post does not working well like missing tags.

It sounds like both Postman and Axios successfully create the dashboard. I’m not sure what you mean by “missing tags”. Do you get any errors from your request? Or are you getting different dashboards depending on if you’re using Postman or Axios?

Hi @marcusolsson, actually i find out is not the Axios problem maybe. I try it local axios post and upload to lambda using exact same axios post to dashboard API have created the dashboard but for lambda’s created dashboard was not working(the tags was not create).
I am using this json,

{
  "dashboard": {
    "id": null,
    "uid": null,
    "title": "Production Overview",
    "tags": [ "templated" ],
    "timezone": "browser",
    "schemaVersion": 16,
    "version": 0,
    "refresh": "25s"
  },
  "folderId": 0,
  "overwrite": false
}