# Move dashboard through api

**URL:** <https://community.grafana.com/t/move-dashboard-through-api/6446>\
**Category:** General\
**Tags:** api\
**Created:** [March 27, 2018, 6:20pm UTC](https://community.grafana.com/t/move-dashboard-through-api/6446 "2018-03-27T18:20:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pradeepchandran](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@pradeepchandran](https://community.grafana.com/u/pradeepchandran)\
**Post date:** [March 27, 2018, 6:20pm UTC](https://community.grafana.com/t/move-dashboard-through-api/6446/1 "2018-03-27T18:20:48Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![anon34853223](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@anon34853223](https://community.grafana.com/u/anon34853223)\
**Post date:** [March 27, 2018, 6:24pm UTC](https://community.grafana.com/t/move-dashboard-through-api/6446/2 "2018-03-27T18:24:42Z")

</div>

Hi,

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](http://docs.grafana.org/http_api/dashboard/#create-update-dashboard). You see there that you can set a _folderId_ property which is the numerical id of a folder - see [folder http api documentation](http://docs.grafana.org/http_api/folder/#folder-api).

Marcus

---

<div class="post-metadata">

**Author:** ![pradeepchandran](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@pradeepchandran](https://community.grafana.com/u/pradeepchandran)\
**Post date:** [March 27, 2018, 7:23pm UTC](https://community.grafana.com/t/move-dashboard-through-api/6446/3 "2018-03-27T19:23:11Z")

</div>

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  
}

---

<div class="post-metadata">

**Author:** ![anon34853223](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@anon34853223](https://community.grafana.com/u/anon34853223)\
**Post date:** [March 27, 2018, 8:14pm UTC](https://community.grafana.com/t/move-dashboard-through-api/6446/4 "2018-03-27T20:14:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pradeepchandran](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@pradeepchandran](https://community.grafana.com/u/pradeepchandran)\
**Post date:** [March 27, 2018, 8:34pm UTC](https://community.grafana.com/t/move-dashboard-through-api/6446/5 "2018-03-27T20:34:19Z")

</div>

yeah its work fine .thanks for the help 🙂

---

<div class="post-metadata">

**Author:** ![mahadev](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/mahadev/32/4173_2.png) [@mahadev](https://community.grafana.com/u/mahadev)\
**Post date:** [June 21, 2018, 12:12pm UTC](https://community.grafana.com/t/move-dashboard-through-api/6446/6 "2018-06-21T12:12:11Z")

</div>

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.

Thanks
