Hi, I’m having problems changing the geometry of a card.
e.g. (from python)
payload = { 'geometry':{'width':260, 'height':130}}
url = f"https://api.miro.com/v2/boards/uXjVPdveOFo=/cards/3458764531765310379"
response = requests.patch(url, json=payload, headers=headers).json()
results in
{'type': 'error', 'code': '3.0215', 'context': {'boardId': 'uXjVPdveOFo=', 'itemId': '3458764531765310379', 'validationErrors': [{'code': '3.0211', 'message': 'Value for width should be greater than or equal to 256.0, found: 147.39173256538714'}]}, 'message': 'Unable to complete operation because of the validation errors.', 'status': 400}
which doesn’t make sense as the width I’m setting is > 256. It seems if the card has been manually resized at some point, the API call will either get ignored (response returns the size set, but item on canvas does not change) or it returns a nonsensical error.
Is this a bug in the API?