update file with api available in persistence service