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

URL:
{{Url}}/security-api/oauth/authorize
{{Url}}/security-api/addUser/v1.0/user/

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