Update template sensor value

Hi! I’m new to Node-Red and I’m wondering how I can update a template sensor’s value from within node-red. The template sensor’s state will be displaying my card balance that comes from an api-call. Thanks!