Move dashboard through api

i want to move dashboard from one folder to other through api,is it possiable?
or add a new dashboard in folder through api (ver 5.3)


I’m guessing your on v5.0.3 and not v5.3 since that not released yet.

See Create / Update dashboard in dashboard http api documentation. You see there that you can set a folderId property which is the numerical id of a folder - see folder http api documentation.


ya its v5.0.3.
what is folderId ? is it folder uid or id ?
when i try i got a error “message”:“Failed to save dashboard”
“dashboard”: {
“id”: null,
“uid”: null,
“title”: “test”,
“tags”: [ “templated” ],
“timezone”: “browser”,
“schemaVersion”: 16,
“version”: 0
“folderId”: 1,
“overwrite”: false

It’s folder id. Check grafana server log for more information about the error. You may also be able to see more error information in the response

yeah its work fine .thanks for the help :slightly_smiling_face:

Hi @pradeepchandran
I am trying to import the dashboard using API and able to import.By default it will save in general folder.
How to save in userdefined folder??

If above one is not possible how can I move imported dashboard from general folder to my folder using API.