I am getting collection of ids `[1,2,3,4]` in the `params` and I make a call to an API that will return the array for the corresponding ids. E.g. `["Apple","Orange","Mango"]`. How can I update this in my database for the corresponding ids?

For example: the `ids` which are mentioned above are from my user table. `ids = [1,2,3,4]`, which are primary keys in my user table.

From the API response I got an array of `fruit_names` for the correlated `user_ids`. E.g.: `ids = [1,2,3,4]` and `fruit_names = ["a","b","c","d"]`, where the `fruit_name` column exists in my user table. How do I update `fruit_name` from the API response correlated `ids` in my user table?