---
title: "Update WebSocket Settings"
method: PATCH
path: "/apiops/projects/{projectName}/apiProxies/{apiProxyName}/settings/websocket/"
tags: ["ApiProxy"]
---

# Update WebSocket Settings

`PATCH /apiops/projects/{projectName}/apiProxies/{apiProxyName}/settings/websocket/`

## Request

- Base URL: `http://167.86.118.166:32080`
- URL: `http://167.86.118.166:32080/apiops/projects/{projectName}/apiProxies/{apiProxyName}/settings/websocket/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/apinizer/apis/apinizer-management-apis/docs/apiops/projects/:projectName/apiProxies/:apiProxyName/settings/websocket/patch.ts> (a function with typed inputs; its response is checked against the schema)

Updates WebSocket routing settings for the specified API Proxy

## Path parameters

- `projectName` string, required
- `apiProxyName` string, required

## Request body

- ApiProxyWebsocketSettingsUpdateDTO
  - `deploy` boolean: If true, deploy the API Proxy after saving changes
  - `deployTargetEnvironmentNameList` string[]: List of environment names to deploy to (required when deploy=true)
  - `websocketSettings` ApiOpsWebsocketSettingsPatchDTO: Partial update body for API Proxy WebSocket routing settings. Every field is optional; an omitted (or null) field keeps the stored value.
    - `connectionLostTimeout` integer: Connection-lost timeout in seconds; 0 disables the lost-connection detector. Omitted = unchanged.
    - `reuseAddr` boolean: Whether the socket is opened with the SO_REUSEADDR option. Omitted = unchanged.
    - `connectTimeout` integer: Connect timeout in seconds. Omitted = unchanged.
    - `maxRetries` integer: Maximum connect retries for the initial handshake. Omitted = unchanged.
    - `retryDelay` integer: Delay between connect retries in milliseconds. Omitted = unchanged.
    - `autoReconnect` boolean: Whether a dropped connection is reconnected automatically. Omitted = unchanged.
    - `autoReconnectMaxRetries` integer: Maximum automatic reconnect attempts. Omitted = unchanged.
    - `autoReconnectRetryDelay` integer: Delay between automatic reconnect attempts in milliseconds. Omitted = unchanged.

## Response `200`

successful operation!

- ApiOpsResponseSuccess
  - `status` 'SUCCESS' | 'FAILURE'
  - `resultMessage` string
  - `resultList` string[]
  - `resultCount` integer
  - `deploymentResult` DeploymentResult
    - `envName` string
    - `podName` string
    - `podIp` string
    - `success` boolean
    - `detail` string
    - `responseTime` integer
    - `detailList` unknown[]
      - unknown
    - `firstFromApiResultList` unknown
  - `unresolvedReferences` string[]
  - `advisories` ApiOpsAdvisoryDTO[]
    - `level` string
    - `key` string
    - `params` object

## Other responses

- `401`: not authorized for this operation!
- `500`: internal error!

## Changes

- **2026-08-11** `9ae232e55479`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/apinizer/apis/apinizer-management-apis/changes/apiops/projects/:projectName/apiProxies/:apiProxyName/settings/websocket/patch.md)

---

[API](https://skmtc.dev/apinizer/apis/apinizer-management-apis.md) - [All operations](https://skmtc.dev/apinizer/apis/apinizer-management-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/apinizer/apis/apinizer-management-apis/revisions/e083046b24cd?raw)
