> ## Documentation Index
> Fetch the complete documentation index at: https://infisical.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a proxy

> Change an Agent Vault proxy's settings with the Python SDK.

`client.agent_vault.proxies.update()` changes a [proxy's](https://infisical.com/docs/documentation/platform/agent-vault/proxies) name, description, or settings. The client must log in as a user or machine identity with the **Admin** role in the [Agent Vault project](https://infisical.com/docs/documentation/platform/agent-vault/access-control#product-membership).

The proxy's name, description, and settings that you don't pass stay as they are. If the proxy is running, it applies the changes within one poll interval.

## Parameters

**proxy\_id** `str` *required*

The ID of the proxy.

**name** `str`

The new name of the proxy.

**traffic\_policy** `Union[AgentVaultTrafficPolicy, str]`

The new traffic policy.

**allowed\_hosts** `Union[List[str], str]`

The new exceptions, which replace the current ones, or an empty list or string to remove every exception.

**poll\_interval** `int`

The new poll interval in seconds, from 10 to 300.

**description** `str`

The new description, or an empty string to remove the description.

## Returns

**proxy** `AgentVaultProxy`

The updated proxy.

```python Basic theme={"dark"}
from infisical_sdk import AgentVaultTrafficPolicy

proxy = client.agent_vault.proxies.update(
    proxy_id="<proxy-id>",
    name="edge-proxy",  # Optional
    traffic_policy=AgentVaultTrafficPolicy.SERVICE_HOSTS,  # Optional
    allowed_hosts=["pypi.org"],  # Optional
    poll_interval=30,  # Optional
    description="Proxy for CI runners",  # Optional
)
```

```json Response theme={"dark"}
{
  "id": "f1e2d3c4-b5a6-4978-8a6b-5c4d3e2f1a0b",
  "name": "edge-proxy",
  "description": "Proxy for CI runners",
  "heartbeat": "2026-12-02T12:04:51.000Z",
  "isHealthy": true,
  "rootCaFingerprint": "<sha-256-fingerprint>",
  "rootCaExpiresAt": "2036-12-01T09:00:00.000Z",
  "trafficPolicy": "service-hosts",
  "allowedHosts": "pypi.org",
  "pollInterval": 30,
  "createdAt": "2026-12-01T09:00:00.000Z"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.