Skip to main content
Answered

Rest API: Send to Back/Bring to Front

  • March 8, 2021
  • 1 reply
  • 423 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

Best answer by Daniela Gavidia

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

View original
Was it helpful?

1 reply

Daniela Gavidia
Mironeer
Forum|alt.badge.img

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