Hi Jochen, I am manually using Graylog REST API to position widgets. It seems to work the first time i do it but if i was to delete and then re-add a widget and try to position using the REST API then the REST API put of positions fail
The JSON body i am using for the position put is { "positions": [ { "col": 1, "height": 2, "id": "ec1d1d1b-761e-4cb9-93ae-fd54a6c2a127 ", "row": 1, "width": 1 }, { "col": 2, "height": 1, "id": "6ac454f4-786f-475f-9ae5-12bd45db3957 ", "row": 1, "width": 2 }, { "col": 2, "height": 1, "id": "f5bcbcb6-d10e-4088-8757-46ebe8d8f711 ", "row": 2, "width": 1 }, { "col": 3, "height": 1, "id": "d51eb586-a372-46a1-bd4f-8e08a3c74488 ", "row": 2, "width": 1 }, { "col": 4, "height": 1, "id": "e832cace-4e16-4006-ba72-0673b81a933d ", "row": 2, "width": 1 }, { "col": 4, "height": 1, "id": "bceb09f8-3b21-4770-83c8-7a7f2eb210ab", "row": 1, "width": 1 }, { "col": 3, "height": 3, "id": "ffab24ed-70a3-4aa4-bdf7-8cf79a0ed3ab ", "row": 3, "width": 2 }, { "col": 1, "height": 3, "id": "a1b9e503-9aa4-4522-9cd5-be63111cfa30 ", "row": 3, "width": 2 } ] } The dashboard visibly shows that these positions are not being adhered too best regards, Alex On Tuesday, August 16, 2016 at 5:22:25 AM UTC-4, Jochen Schalanda wrote: > > Hi Alex, > > how exactly are you using the Graylog REST API and which requests do you > send to it? > > Cheeres, > Jochen > > On Monday, 15 August 2016 22:19:03 UTC+2, Alex Stanek wrote: >> >> Hello, >> I am currently trying to position dashboard widgets using Graylog 2.0 >> rest api with no such luck on the positions being applied to the UI >> dashboard. The positions of the widgets are changed inside the rest api if >> i use the get /dashboards/{dashboardId} >> <http://192.168.10.60:12900/api-browser#!/Dashboards/get_get_2> to >> verify the widgets positions that i put using >> /dashboards/{dashboardId}/positions. And the put comes back with a 204 >> status code displaying that it is a valid put. But once i look at my >> Graylog UI dashboard the widgets have no semblance to the positions the are >> in the rest api and the rest api will not update until i change the >> positions inside of the UI dashboard. >> best regards, >> Alex >> > -- You received this message because you are subscribed to the Google Groups "Graylog Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to graylog2+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/c5f1599d-d757-4d76-a454-f03bcb9b3886%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.