create product modification method for the API