cURL
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>" }
Replaces the ProxyAccount resource.
Value for the api-key header parameter.
ProxyAccount identifier
The updated ProxyAccount resource
256
true
Show child attributes
6
ProxyAccount resource updated
"ACCOUNT_BLOCKED"