Update Proxy Rotation

Update the rotation status of a proxy.

PUT/proxies/update_rotation

Body Parameters

Security

Authorizationstringrequired

JWT Bearer token

Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Request Body

idintegerrequired

ID of the proxy to update

is_rotatingbooleanrequired

Enable or disable proxy rotation

const response = await fetch('https://api.pinguproxy.com/proxies/update_rotation', {
method: 'PUT',
headers: {
'Authorization': 'Bearer your-jwt-token',
'Content-Type': 'application/json'
},
body: JSON.stringify({
id: 1,
is_rotating: true
})
});
const result = await response.json();

Response

{
"is_rotating": true
}

Update Proxy Rotate Interval

Update the rotation interval of a proxy.

PUT/proxies/update_rotate_interval

Body Parameters

Security

Authorizationstringrequired

JWT Bearer token

Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Request Body

idintegerrequired

ID of the proxy to update

rotate_intervalintegerrequired

New rotation interval in seconds

const response = await fetch('https://api.pinguproxy.com/proxies/update_rotate_interval', {
method: 'PUT',
headers: {
'Authorization': 'Bearer your-jwt-token',
'Content-Type': 'application/json'
},
body: JSON.stringify({
id: 1,
rotate_interval: 300
})
});
const result = await response.json();

Response

{
"success": true
}