Example: An external service is calling my REST endpoint via a webhook, thus notifying me of an update of some data. I would like to be able to trigger all cards who display a piece of that data in their badges to be seamlessly updated (without any action need on the part of the user).
Card labels are supported in our API. You can POST/DELETE to the “card/:cardId/idLabels” endpoint to add or remove labels on a card. Make sure you have the id of the label handy.
There isn’t a rock solid way of doing this and I feel like I’ve heard of a few different solutions…
A very hacky way of doing this would be making a PUT call to the card you want to update and change something minor like adding a space to the description. t.render should be called when the card’s data is updated.
What do you mean by "t.render should be called…"? This function is available only client-side. The whole trick is to trigger to re-render, from the backend.
Right - to be clear, there is no way to trigger it from the backend. There isn’t a call or capability or anything that does this. So you have to workaround it by making one of the things happen that causes a re-render to happen on the frontend.