Skip to main content

Hello,

I’m using the REST API to request information from a board, using `GET /v2/boards/{board_id}/items`. I have some sticky notes in different colors in my board, however the returned `fillColor` in `style.fillColor` is always `light_yellow`, even if the sticky note has a different color. Other style properties (e.g. `textAlign`) work correctly - but the `fill_color` is always `light_yellow`.

I’ve implemented this functionality ~1 year ago, and it definitely worked back then - did something change that broke this, is this a bug or intended behavior? If intended, is there any other way to figure out the color of a sticky note?

Hey ​@Jimmyyy 

I’ve just tested the following REST API call:

 

curl --request GET \
--url 'https://api.miro.com/v2/boards/<board-id>/items?type=sticky_note' \
--header 'accept: application/json' \
--header 'authorization: Bearer <token>'

And I did see output like this:

 

  "id": "<id>",
"type": "sticky_note",
"data": {
"content": "test",
"shape": "square"
},
"style": {
"fillColor": "dark_green",
"textAlign": "center",
"textAlignVertical": "middle"
},


I’m not quite sure why this is not working for you. If you start a new board and add in two stickies, with two different colors, and try this again, do you still face the same issue? 


Hey ​@Horea Porutiu,

thanks for testing it (and the very fast response!) - unfortunately, I just tested it again and it still doesn’t seem to work for me.

I have the following board (created yesterday): 

with sticky notes that are not light_yellow in my opinion.

I’ve just sent a request to 

GET https://api.miro.com/v2/boards/uXjVI-C1UBA=/items?type=sticky_note

using the same accept and authorization header that you’re using. There, I get the following response:

{
"size": 7,
"limit": 10,
"total": 7,
"data":
{
"id": "3458764625898346385",
"type": "sticky_note",
"data": {
"content": "<p>Restaurant Management2</p>",
"shape": "rectangle"
},
"style": {
"fillColor": "light_yellow",
"textAlign": "right",
"textAlignVertical": "middle"
},
...]

even though the sticky note is not light_yellow. Using the URL from links.self (https://api.miro.com/v2/boards/uXjVI-C1UBA%3D/sticky_notes/3458764625898346385) returns the same style info.

I’ve also just created a new board:

with the same problem and following response:

{
"size": 2,
"limit": 10,
"total": 2,
"data":
{
"id": "3458764626030331568",
"type": "sticky_note",
"data": {
"content": "<p>pink</p>",
"shape": "square"
},
"style": {
"fillColor": "light_yellow",
"textAlign": "right",
"textAlignVertical": "middle"
},

 


I can confirm that issue. 

 


I’ve tested it again and I was able to reproduce the issue. I’ll bring this to our eng team and I’ll update this thread once we find the problem. Thank you for bringing this problem up. 


I have the same issue, in case you need an other example :-)


Reply