> ## 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 Node.js SDK.

`client.agentVault().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

**proxyId** `string` *required*

The ID of the proxy.

**options** `object` *required*

**properties**

**name** `string`

The new name of the proxy.

**trafficPolicy** `AgentVaultTrafficPolicy`

The new traffic policy.

**allowedHosts** `string[] | string`

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

**pollInterval** `number`

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

**description** `string`

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

## Returns

**proxy** `AgentVaultProxyWithSettings`

The updated proxy.

```typescript Basic theme={"dark"}
import { AgentVaultTrafficPolicy } from "@infisical/sdk";

const proxy = await client.agentVault().proxies.update("<proxy-id>", {
  name: "edge-proxy", // Optional
  trafficPolicy: AgentVaultTrafficPolicy.ServiceHosts, // Optional
  allowedHosts: ["registry.npmjs.org"], // Optional
  pollInterval: 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": "registry.npmjs.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.