update with api