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

# Update Connection Settings

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

## Request

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

Updates Connection settings for the specified API Proxy

## Path parameters

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

## Request body

- ApiProxyConnectionSettingsUpdateDTO: API Proxy Connection Settings Update DTO - used to update connection, retry, and header settings
  - `deploy` boolean: If true, deploy the API Proxy after saving changes
  - `deployTargetEnvironmentNameList` string[]: List of environment names to deploy to (required when deploy=true)
  - `connectionSettingsEnabled` boolean: Enable custom connection settings (overrides system defaults)
  - `connectTimeout` integer: Connection timeout in milliseconds
  - `readTimeout` integer: Read timeout in milliseconds
  - `connectionRequestTimeout` integer: Connection request timeout in milliseconds
  - `redirectsEnabled` boolean: Enable HTTP redirect following
  - `maxRedirects` integer: Maximum number of redirects to follow
  - `relativeRedirectsAllowed` boolean: Allow relative redirects
  - `preserveHttpMethodOnRedirect` boolean: Preserve HTTP method and body on 301/302/303/307/308 redirects (default: false — 301/302/303 downgrade to GET and drop the body)
  - `enableStreaming` boolean: Enable streaming for large responses
  - `retryCount` integer: Number of retries for failed requests (default: 0)
  - `failoverRetryCount` integer: Number of retries during failover (default: 0)
  - `ignoreRoutingError` boolean: Ignore routing errors
  - `connectionPoolManagementType` 'GENERAL' | 'CUSTOM' | 'NONE': Connection pool management type: GENERAL, PER_ROUTE, CUSTOM
  - `customConnectionPoolSize` integer: Custom connection pool size (only when connectionPoolManagementType is CUSTOM)
  - `validateAfterInactivity` integer: Stale connection check interval in milliseconds (default: 2000)
  - `idleConnectionTimeout` integer: Idle connection cleanup timeout in seconds (default: 30)
  - `hopByHopHeaders` string[]: List of hop-by-hop headers to remove before forwarding to backend
  - `sendUserAgentToBackend` boolean: Send User-Agent header to backend
  - `userAgentValue` string: Custom User-Agent header value
  - `doNotRouteZeroValueContentLength` boolean: Do not route requests with Content-Length: 0
  - `enableDownload` boolean: Enable file download support
  - `useBase64TextForCompressedResponse` boolean: When true, gateway returns Base64-encoded text for compressed response (legacy client compatibility). When false (default), gateway returns raw byte array.
  - `requestCharsetOverride` string: Override request charset (e.g. ISO-8859-9, windows-1252). null = read from header
  - `responseCharsetOverride` string: Override response charset (e.g. ISO-8859-9, windows-1252). null = read from header
  - `requestDecompressOverride` 'GZIP' | 'DEFLATE' | 'BR' | 'ZSTD' | 'NOT_APPLY' | 'MIRROR_SERVER_RESPONSE' | 'AUTO_BY_CLIENT_ACCEPT_ENCODING': Override request decompress encoding. null = auto (CE header + magic byte), NOT_APPLY = skip decompress
  - `requestCompressOverride` 'GZIP' | 'DEFLATE' | 'BR' | 'ZSTD' | 'NOT_APPLY' | 'MIRROR_SERVER_RESPONSE' | 'AUTO_BY_CLIENT_ACCEPT_ENCODING': Override request compress encoding (to backend). null = auto, NOT_APPLY = skip compress
  - `responseDecompressOverride` 'GZIP' | 'DEFLATE' | 'BR' | 'ZSTD' | 'NOT_APPLY' | 'MIRROR_SERVER_RESPONSE' | 'AUTO_BY_CLIENT_ACCEPT_ENCODING': Override response decompress encoding (from backend). null = auto (CE header + magic byte), NOT_APPLY = skip decompress
  - `responseCompressOverride` 'GZIP' | 'DEFLATE' | 'BR' | 'ZSTD' | 'NOT_APPLY' | 'MIRROR_SERVER_RESPONSE' | 'AUTO_BY_CLIENT_ACCEPT_ENCODING': Override response compress encoding (to client). null = auto, NOT_APPLY = skip compress
  - `retryDelayType` 'NO_DELAY' | 'FIXED' | 'EXPONENTIAL': Retry delay strategy: NO_DELAY, FIXED, EXPONENTIAL_BACKOFF
  - `retryFixedDelayMs` integer: Fixed delay between retries in milliseconds
  - `retryInitialDelayMs` integer: Initial delay for exponential backoff in milliseconds
  - `retryMaxDelayMs` integer: Maximum delay for exponential backoff in milliseconds
  - `retryBackoffMultiplier` number, double: Backoff multiplier for exponential delay

## 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!

---

[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)
