Skip to main content
Question

Grouping with API doesn't result in a group in UI


Forum|alt.badge.img+1

I’m creating a rectangle and text item with the API successfully and then attempting to group them together.  I receive a 201 and an id for the group.  But when I go to the UI the items are not grouped together or in any group.  I’ve checked and feel confident I’m sending the correct ids for the rectangle and text item.

Here is what I send:
POST https://api.miro.com/v2/boards/uXblahblahA=/groups
{'data': {'items': ['3458764621210577058', '3458764621210577077']}}

Here is what I receive:
{'id': '3458764621210577087', 'type': 'group', 'data': {'items': [3458764621210577058, 3458764621210577077]}, 'links': {'self': 'https://api.miro.com/v2/boards/uXblahblahA%3D/groups/3458764621210577087'}}

What am I missing?

Was it helpful?

2 replies

Forum|alt.badge.img

Hello Rolf,

 

Thank you for sharing your questions with us!

 

I have tested the Group flow via REST API and grouped a rectangle and a text item together, and it worked as expected. Now, when I select one of the two items - both are selected and can be moved or removed together.

 

May I ask whether you refreshed the board after applying the Group request? Are the IDs of the widgets the correct ones (the ones you are further looking into)?

Thank you!


Forum|alt.badge.img+1

Hi Andrew,

 

Thanks for the quick response!

Indeed when I refresh the page the groups are there.  Problem solved.


Rolf
 

Note that the rectangle and text item appear without refreshing so I hadn’t thought to refresh for the group.  


Reply