Skip to main content
Answered

Unassigning a Card via the Miro API


Forum|alt.badge.img+1

Hello Miro Support Team,

I am currently working with the Miro API and using the "Update card item" endpoint (PATCH https://api.miro.com/v2/boards/{board_id}/cards/{item_id}) to manage card details. My goal is to remove the current assignee from a card. However, I have tried setting the assigneeId to null, an empty string, and even omitting the field entirely, but none of these approaches seem to unassign the card.

Could you please advise if there is a supported method for unassigning a card via the API? If not, is there a planned update to allow this functionality? Any guidance or workaround you can provide would be greatly appreciated.

Thank you for your help.

Best regards,

Syrnikov Pavel

Best answer by Horea Porutiu

Hey ​@Pavel Syrnikov 

This is a great question. I tested this and was able to remove current assignee by passing in 0 for the assigneeId. Here is the full request that worked for me:

 

curl --request PATCH \
     --url https://api.miro.com/v2/boards/'board-id'/cards/'card-id' \
     --header 'accept: application/json' \
     --header 'authorization: Bearer token' \
     --header 'content-type: application/json' \
     --data '
{
  "data": {
    "assigneeId": "0"
  }
}
'

Could you please try it and see if it works for you? 

 

View original
Was it helpful?

Horea Porutiu
Mironeer
Forum|alt.badge.img+1

Hey ​@Pavel Syrnikov 

This is a great question. I tested this and was able to remove current assignee by passing in 0 for the assigneeId. Here is the full request that worked for me:

 

curl --request PATCH \
     --url https://api.miro.com/v2/boards/'board-id'/cards/'card-id' \
     --header 'accept: application/json' \
     --header 'authorization: Bearer token' \
     --header 'content-type: application/json' \
     --data '
{
  "data": {
    "assigneeId": "0"
  }
}
'

Could you please try it and see if it works for you? 

 


Forum|alt.badge.img+1

Everything worked perfectly! I was able to remove the current assignee by passing in 0 for the assigneeId. Thank you so much for your help!


Reply