Skip to main content

I have a problem where whenever I am testing the api in miro dev-hub its giving me 400 error indicating something to be wrong with payload, I have read v2 documents and did the formatting accordingly but still it’s not helping any solutions anyone (P.s I am using rest API to create sticky notes sending  a payload and specifically positioning them also)

Hi ​@Taha S 

Naturally a bit tricky to debug without more details, etc. You mentioned you read the v2 docs, but “for avoidance of doubt” have you also tried the online version here?

https://developers.miro.com/reference/create-sticky-note-item

Also - what I can DEFINITELY recommend is visiting the Discord site, so you can directly chat with developers!  I have benefitted greatly because the audience is 100% Miro developers including some superstars who work directly for Miro!

Good luck!  Ken

curl --request POST \
--url https://api.miro.com/v2/boards/board_id/sticky_notes \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"data": {
"content": "Hello",
"shape": "square"
},
"style": {
"fillColor": "gray",
"textAlign": "left",
"textAlignVertical": "top"
},
"position": {
"x": 100,
"y": 100
},
"geometry": {
"height": 0,
"width": 0
},
"parent": {
"id": "string"
}
}
'