Hi all.
My case is - we render complex diagram with 1600 objects one the same board and other employees have read access. The board should be updated in some interval - every hour, for example.
My first issue - posting. I post all those 1k+ object one by one which is slow and not efficient from CPU POV for both sides - miro and my app side. Maybe miro developers can provide batch endpoint to accept list of objects?
Next issue - recreating diagram, I can’t push only changes to the board, because logic would be super complex, because I’ll have to recalculate size of all elements, so it’s much easier for me to delete all and post everything again. My question is - How do I clean up the board with API? There is no such api right?
I have to fetch all items by GET https://api.miro.com/v2/boards/{board_id}/items
and then delete them ONE BY ONE with
DELETE https://api.miro.com/v2/boards/{board_id}/items/{item_id}
Is that correct? That’s ridiculous isn’t it?
There should be batch endpoint for these operations, dont’ you think?
The board is the same, the link is the same, so please don’t propose to delete and create another board.