Skip to main content
PUT
/
api
/
proxy_accounts
/
{id}
Replaces the ProxyAccount resource.
curl --request PUT \
  --url https://anyip.io/api/proxy_accounts/{id} \
  --header 'Content-Type: application/ld+json' \
  --header 'api-key: <api-key>' \
  --data '
{
  "description": "<string>",
  "enabled": true,
  "ip_whitelist": {
    "ips": [
      "<string>"
    ],
    "ports": [
      {
        "port": 10001499,
        "type": "residential",
        "country": "<string>",
        "city": "<string>",
        "session": "<string>",
        "sess_time": 30,
        "sess_replace": true,
        "sess_ip_collision": "strict"
      }
    ],
    "is_enabled": true
  },
  "plain_password": "<string>",
  "quota": 123
}
'
{
  "@context": "<string>",
  "@id": "<string>",
  "@type": "<string>",
  "description": "<string>",
  "enabled_by_admin": true,
  "status": "ACCOUNT_BLOCKED",
  "is_active": true,
  "enabled": true,
  "id": "<string>",
  "ip_whitelist": {
    "@context": "<string>",
    "@id": "<string>",
    "@type": "<string>",
    "ips": [
      "<string>"
    ],
    "ports": [
      {
        "@context": "<string>",
        "@id": "<string>",
        "@type": "<string>",
        "port": 10001499,
        "type": "residential",
        "country": "<string>",
        "city": "<string>",
        "session": "<string>",
        "sess_time": 30,
        "sess_replace": true,
        "sess_ip_collision": "strict"
      }
    ],
    "is_enabled": true
  },
  "plain_password": "<string>",
  "quota": 123,
  "username": "<string>",
  "hash": "<string>",
  "quota_str": "<string>",
  "bytes_recv": 123,
  "bytes_sent": 123,
  "consumption": 123,
  "consumption_str": "<string>"
}

Authorizations

api-key
string
header
required

Value for the api-key header parameter.

Path Parameters

id
string
required

ProxyAccount identifier

Body

The updated ProxyAccount resource

description
string | null
Maximum string length: 256
enabled
boolean
default:true
Example:

true

ip_whitelist
object
plain_password
string | null
Minimum string length: 6
quota
integer

Response

ProxyAccount resource updated

@context
@id
string
@type
string
description
string | null
Maximum string length: 256
enabled_by_admin
boolean
default:true
Example:

true

status
string
default:ACCOUNT_BLOCKED
Example:

"ACCOUNT_BLOCKED"

is_active
boolean
enabled
boolean
default:true
Example:

true

id
string
ip_whitelist
object
plain_password
string | null
Minimum string length: 6
quota
integer
username
string
Minimum string length: 6
hash
string
quota_str
string
bytes_recv
integer
bytes_sent
integer
consumption
integer
consumption_str
string