---
# System prepended metadata

title: Set user's Home Dashboard via API
tags: [ThingsBoard]

---

## Set user's Home Dashboard via API

To set Home Dashboard for a customer using API you need to do next steps:

Get User/Customer ID (pic. 1) and Dashboard ID (pic. 2).
1) For User you must go to “Users” → Choose your User → Click mouse’s left button → Press “Copy user Id“
![](https://hackmd.io/_uploads/ry4wiodhh.png)


 2) For Dashboard you must go to “Dashboards” → Choose your Dashboard → Click mouse’s left button → Press “Copy dashboard Id” 
![](https://hackmd.io/_uploads/rJNdosdhh.png)


3. Make GET request using your User/Customer ID (for example you can do it using SwaggerUI api/user/{userId}) (pic. 3). For this go to https://$YOUR_THINGSBOARD.com/swagger-ui/ → Go to tab “user-controller“ and choose GET api/user/{userId}. Then press “Try it out” and insert your UserID. Press “Execute“
P.S. Don’t forget to replace $YOUR_THINGSBOARD.com with your real address
![](https://hackmd.io/_uploads/HJYFsjunn.png)


4. Make POST request using the previously received template from as well as your Dashboard ID. The key you needed is "homeDashboardId" where you need to change "null" to your Dashboard ID, but also you must change the status of "homeDashboardHideToolbar" from "false" to "true" (pic.4).
![](https://hackmd.io/_uploads/ByCcjjdn2.png)


After all of these steps, your user's Home Dashboard will change to the one you need. 

 