You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No save Labels on trelloApi.updateCard(itemCard); #20
Indeed, any card.update() call erases Label from card on Trello board. The only workaround is to save Labels before update() and use them to send correct request by youself: https://developers.trello.com/reference/#cardsidlabels
Tip: this api won't create label duplicate if you use existing parameters (name, color), so you can use it both for creating new labels and assign already existing ones to the card.
Activity
vitaliypo commentedon Feb 18, 2019
Indeed, any
card.update()call erases Label from card on Trello board. The only workaround is to save Labels before update() and use them to send correct request by youself: https://developers.trello.com/reference/#cardsidlabelsTip: this api won't create label duplicate if you use existing parameters (name, color), so you can use it both for creating new labels and assign already existing ones to the card.
bryanchug commentedon Oct 18, 2020
Adding
idLabelstoCardshould fix the issue.