Skip to content

Modifying proxy information

Request

Update a proxy configuration.

  • Preconditions: the proxy must exist in the team. Dynamic proxies cannot be updated through this endpoint. The proxy type must be a recognised value.
  • Effect: this is a full overwrite, not a patch — fields you omit fall back to their defaults rather than keeping their current values. Read the proxy first and send it back complete.
  • Propagation: profiles keep their binding because only the proxy record changes, but a browser or Cloud Phone that is already running continues to use the connection details it started with. Restart it to pick up the new ones.
  • Completion: synchronous. No optimistic locking, so concurrent updates are last-write-wins.

Documented business errors: 14003, 14023. See Error Codes for what each code means. Any operation can additionally return the common codes.

Security
Authorization
Bodyapplication/jsonrequired
idstringrequired

Unique proxy ID

proxyIpstringrequired

Proxy server IP address

proxyPortintegerrequired

Proxy server port

proxyNamestring

Custom name for the proxy

countrystring

Country (e.g., "US", "CN")

citystring

City name

usernamestring

Authentication username (if required)

passwordstring

Authentication password (if required)

proxyTypeinteger

Proxy protocol type:

  • 0 = HTTP
  • 1 = HTTPS
  • 2 = SOCKS5
  • 3 = SSH
proxyProviderintegerrequired

Proxy type ID:

  • 0 = HTTP
  • 1 = HTTPS
  • 2 = SOCKS5
  • 3 = SSH
  • 4 = Oxylabs
  • 5 = Proxys.io
  • 6 = GeoSurf
  • 7 = Luminati
  • 8 = Lumauto
  • 9 = Oxylabsauto
  • 10 = Trojan
  • 11 = Shadowsocks
  • 12 = vmess
  • 13 = ABCPROXY
  • 14 = LunaProxy
  • 15 = IPHTML
  • 16 = PiaProxy
  • 17 = 922S5
encryptionTypeinteger

Encryption type (type-specific, usually 0 for plain)

ipMonitorboolean

Enable IP change monitoring

ipChangeActioninteger

Action to take when IP changes:

  • 1 = Notify / Refresh (common value)

Check system documentation for full options.

refreshUrlstring

URL to trigger IP refresh (if supported by the proxy type)

statestring

Reserved field or custom state (optional)

curl -i -X POST \
  https://api.morelogin.com/proxyInfo/update \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "1566403036579198",
    "proxyIp": "108.11.23.85",
    "proxyPort": 4096,
    "proxyName": "MyProxy",
    "country": "US",
    "city": "New York",
    "username": "",
    "password": "",
    "proxyType": 0,
    "proxyProvider": 0,
    "encryptionType": 0,
    "ipMonitor": true,
    "ipChangeAction": 1,
    "refreshUrl": "",
    "state": ""
  }'

Responses

Success. This operation returns no payload; the outcome is carried by code.

Headers
any
Bodyapplication/json
codeintegerrequired

Return result code 0:Normal Other codes are exceptions.

msgstring or nullrequired

Error message

requestIdstringrequired

Operation Request ID

Response
{ "code": 0, "msg": "", "requestId": "efgh5678" }