Skip to main content
Question

API: Get items within a frame


kubens_dev123
Forum|alt.badge.img+1

Hi,

I am using this endpoint https://developers.miro.com/reference/get-items-within-frame

If:

  • parent_item_id = {frame_id} - it works as described.
  • parent_item_id = id of not-frame - 404 item not found and that is valid
  • parent_item_id = 0 - items that are not in any frame - without parent node in JSON response

The last one is very convenient to use, however it is not mentioned in the documentary. Could you please tell whether it is a bug and i should not use that, or is that a fair way of getting free-placed items

Was it helpful?

3 replies

Horea Porutiu
Mironeer
Forum|alt.badge.img+1

Hey ​@kubens_dev123 

I’ve just tried it out and it seems to be working just fine with parent_item_id = 0. You can feel free to use it, it’s not really the intended way to work with this endpoint, but I also don’t see any issues with the way you’re using it. 

You could also just use get items endpoint to get items outside the frame, but either works. 


kubens_dev123
Forum|alt.badge.img+1

How can i use get_items to get only items outside of frames? I mean, I know i can get all and then check if parent node exists. But the method with parent_item_id = 0 reduces paylaod.


Horea Porutiu
Mironeer
Forum|alt.badge.img+1

Get items you can filter by item type etc, so it’s a bit of a different use case. So then this seems like a good solution for you to get items outside a frame. 


Reply