Answered

Rest API: Send to Back/Bring to Front

  • 8 March 2021
  • 1 reply
  • 406 views

Is there a way to change the layering of widgets on a board via the rest api?

I get inconsistent layering, i think due to race conditions sending create widget requests. From what i can tell the more recently added widgets always end up on top, but i  can’t find a way to add a widget behind ones that already appear on the board.

I assume i’m missing something?

 

Thanks for the help

Mokes

icon

Best answer by Daniela Gavidia 12 March 2021, 12:42

View original

1 reply

Userlevel 4
Badge

Hello Mokes,

 

It is not currently possible to control the layering of objects through the REST API. It can be done to an extent in the SDK using bringForward() and sendBackward():
https://developers.miro.com/docs/interface-iboardwidgetscommands#section-bring-forward

These methods are the equivalent of right-clicking on a widget in the Miro board and then clicking “Bring to front” or “Send to back”.

I hope this helps.

 

Kind regards.

 

Daniela

Reply