So I have a call I can make to an api that allows me to toggle whether or not a user has a vip role using this endpoint.
ApiService.patch('/admin/vip?user_id=1&user_id=2')
It can target multiple users at once by appending "user_id=:id" after the question mark with a "&" in between each users id. How could I make a variable of some kind that uses a loop to get the correct user ids and apply "user_id=" before their actual IDs and "&" between each user?
I can handle looping to get the IDs but not sure how to put "user_id=" before each id and "&" after each ID (Only if there is another user_id after the last one)