I’m using the PATCH https://api.miro.com/v2/boards/{board_id}/shapes/{shape_item_id} to try and change the text content and background colour of a shape. The request I am using (via https://beta.developers.miro.com/reference/rest-api-update-shape) is
curl --request PATCH \
--url https://api.miro.com/v2/boards/<board_id>/shapes/3458764521610298308 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"content": "new text"
},
"style": {
"fillColor": "#d0e17a"
}
}
'
which results in...
{
"type": "error",
"code": "invalidParameters",
"message": "Position (x and y) is required",
"status": 400
}
if change the request to only include the “style” section i get a 200 response.
I have added a position block but that doesn’t change the response.
Any ideas?