Updating vars in API template