Change proxy pool
/package/proxy/{id}/{proxyIndex}/poolChange the pool for an already-added residential proxy.
Passing pool_id=null reverts to the default pool. Only applicable to residential_gb and residential_city_gb package types.
This method requires authorization!
You can use your own API key, which can be obtained at control panel.
This method - requires permissions -packages-proxies.update
When creating an API token in your control panel, you can choose certain permissions (for example: prevent the token from placing orders).
You can also find a list of permissions in our documentation.
You can also find a list of permissions in our documentation.
Query method
PUThttps://api.stableproxy.com/v2/package/proxy/{id}/{proxyIndex}/pool
Query parameters
| Identifier | Regulations | Example |
|---|---|---|
| pool_idNot necessarily | nullablestring | 22 |
| id | 1required | 81 |
| proxyIndex | 1required | 93 |
Code examples
1const baseUrl = "https://api.stableproxy.com/v2";2const response = await fetch(baseUrl + "/package/proxy/{id}/{proxyIndex}/pool", {3 method: "PUT",4 headers: {5 "Authorization": "API-Token [YOUR TOKEN]",6 "Content-Type": "application/json"7 },8 body: JSON.stringify({9 "pool_id": 2210 })11});12const data = await response.json();