Skip to main content

POST

Change the region of proxies

Updates the region for multiple proxies based on the given list.

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 regions.

Name Type Required Description
(root array)
object[]
No
Array of objects, each containing a proxy ID and the new region.
▼ Show child attributes
curl --request POST \
  --url https://globalbyte.io/api/v1/proxies/region/change \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/json' \
  --data '[{"proxyId":"123e4567-e89b-12d3-a456-426614174022","region":"US-NY"},{"proxyId":"123e4567-e89b-12d3-a456-426614174023","region":"GB"}]'

Responses

Code: 200

Description: Proxy region updated

Content Type: application/json

Name Type Required Description
message
string
No
A confirmation message for the updated region.

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 region updated"
}