Commit 674512ddccf1e9abab7a549d4f3bd110b9a8ab00
1 parent
bea4d7b8
Fix updateDashboardCustomers method - allow empty body
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -212,7 +212,7 @@ public class DashboardController extends BaseController { | @@ -212,7 +212,7 @@ public class DashboardController extends BaseController { | ||
212 | @RequestMapping(value = "/dashboard/{dashboardId}/customers", method = RequestMethod.POST) | 212 | @RequestMapping(value = "/dashboard/{dashboardId}/customers", method = RequestMethod.POST) |
213 | @ResponseBody | 213 | @ResponseBody |
214 | public Dashboard updateDashboardCustomers(@PathVariable(DASHBOARD_ID) String strDashboardId, | 214 | public Dashboard updateDashboardCustomers(@PathVariable(DASHBOARD_ID) String strDashboardId, |
215 | - @RequestBody String[] strCustomerIds) throws ThingsboardException { | 215 | + @RequestBody(required = false) String[] strCustomerIds) throws ThingsboardException { |
216 | checkParameter(DASHBOARD_ID, strDashboardId); | 216 | checkParameter(DASHBOARD_ID, strDashboardId); |
217 | try { | 217 | try { |
218 | DashboardId dashboardId = new DashboardId(toUUID(strDashboardId)); | 218 | DashboardId dashboardId = new DashboardId(toUUID(strDashboardId)); |