updating product api