How to Change URL after Running 5 API's with same data

We need to Add 5 Users with Different Roles on 5 URL’s


First we request token security API
Then we run the add User API for 5 Users by running it 5 times

What needs to be done if we want to change URL from Party001 to Party002 after all the add user API’s ran