Skip to main content

POST

Update the rotation interval for proxies

Allows updating the rotation interval of multiple proxies at once.

Authorizations

Name Type Required Description
bearerAuth http Yes Bearer token for authentication. Include in the Authorization header as 'Bearer <token>'. The token can be obtained through your account dashboard.

Request Body

Required: Yes

Description: List of proxies with their new rotation intervals.

Name Type Required Description
(root array)
object[]
No
Array of objects containing a proxy's ID and its new rotation interval.
▼ Show child attributes
curl --request POST \
  --url https://globalbyte.io/api/v1/proxies/rotate/interval \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/json' \
  --data '[{"proxyId":"123e4567-e89b-12d3-a456-426614174007","rotationInterval":60},{"proxyId":"123e4567-e89b-12d3-a456-426614174008","rotationInterval":120}]'

Responses

Code: 200

Description: Proxy rotation interval updated

Content Type: application/json

Name Type Required Description
message
string
No
A confirmation message for successful rotation interval updates.

Code: 400

Description: Bad request.

Content Type: application/json

Name Type Required Description
message
string
No
Human-readable message describing the bad request.

Code: 401

Description: Unauthorized access.

Content Type: application/json

Name Type Required Description
message
string
No
Human-readable message describing the unauthorized error.

Code: 500

Description: Error response.

Content Type: application/json

Name Type Required Description
message
string
No
Human-readable message describing the error.
{
  "message": "Proxy rotation interval updated"
}