[webapi] Update component for two cases