---
title: "Update Traffic Log Settings for Specific Environment"
method: PUT
path: "/apiops/projects/{projectName}/apiProxies/{apiProxyName}/trafficLogSettings/{environmentName}/"
tags: ["TrafficLogSettings"]
---

# Update Traffic Log Settings for Specific Environment

`PUT /apiops/projects/{projectName}/apiProxies/{apiProxyName}/trafficLogSettings/{environmentName}/`

## Request

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

Partially updates traffic log settings for a specific environment of the specified API Proxy and deploys. Only the fields present in the request body are applied; an omitted (or null) field keeps its stored value. Settings are created with the product defaults if they do not exist yet.

## Path parameters

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

## Request body

- ApiOpsTrafficLogSettingsPatchDTO: Partial update body for API Proxy traffic log settings. Every field is optional; an omitted (or null) field keeps the stored value.
  - `logParamRequestFromClient` boolean: Log query parameters of the request coming from the client. Omitted = unchanged.
  - `logHeaderRequestFromClient` boolean: Log headers of the request coming from the client. Omitted = unchanged.
  - `logBodyRequestFromClient` boolean: Log body of the request coming from the client. Omitted = unchanged.
  - `logParamRequestToTarget` boolean: Log query parameters of the request sent to the target. Omitted = unchanged.
  - `logHeaderRequestToTarget` boolean: Log headers of the request sent to the target. Omitted = unchanged.
  - `logBodyRequestToTarget` boolean: Log body of the request sent to the target. Omitted = unchanged.
  - `logHeaderResponseFromTarget` boolean: Log headers of the response coming from the target. Omitted = unchanged.
  - `logBodyResponseFromTarget` boolean: Log body of the response coming from the target. Omitted = unchanged.
  - `logHeaderResponseToClient` boolean: Log headers of the response sent to the client. Omitted = unchanged.
  - `logBodyResponseToClient` boolean: Log body of the response sent to the client. Omitted = unchanged.
  - `connectorSettingsMap` object: Per-connector settings, keyed by connection name (legacy connector type names are also accepted). Omitted = unchanged; an empty object clears every per-connector setting.
  - `methodOverrideList` MethodLogOverride[]: Method-level overrides. Omitted = unchanged; an empty array clears every override.
    - `apiMethodId` string
    - `apiMethodName` string
    - `connectorSettingsMap` object
  - `retentionProfile` 'STANDARD' | 'NO_PAYLOAD' | 'NO_PERSIST': Data retention profile of this proxy in this environment; null inherits from the project and global settings. Omitted = unchanged.
  - `overrideEnvironmentRestrictions` boolean: Exempts this proxy from the environment connector's detail filter and body size limits. This is the only switch involved; no connector-side permission is required. It never skips privacy masking or the retention profile, and no redeploy is required. Omitted = unchanged.

## Response `200`

successful operation!

- ApiOpsResponseTrafficLogSettings
  - `status` 'SUCCESS' | 'FAILURE'
  - `resultMessage` string
  - `resultList` ApiProxyTrafficLogSettings[]
    - `id` string
    - `environmentId` string
    - `apiProxyId` string
    - `projectId` string
    - `logParamRequestFromClient` boolean
    - `logHeaderRequestFromClient` boolean
    - `logBodyRequestFromClient` boolean
    - `logParamRequestToTarget` boolean
    - `logHeaderRequestToTarget` boolean
    - `logBodyRequestToTarget` boolean
    - `logHeaderResponseFromTarget` boolean
    - `logBodyResponseFromTarget` boolean
    - `logHeaderResponseToClient` boolean
    - `logBodyResponseToClient` boolean
    - `enableDatabaseConnector` boolean
    - `enableElasticsearchConnector` boolean
    - `enableSyslogConnector` boolean
    - `enableWebhookConnector` boolean
    - `enableRabbitMqConnector` boolean
    - `enableActiveMqConnector` boolean
    - `enableKafkaConnector` boolean
    - `enableGraylogConnector` boolean
    - `enableLogbackConnector` boolean
    - `connectorSettingsMap` object
    - `methodOverrideList` MethodLogOverride[]
      - `apiMethodId` string
      - `apiMethodName` string
      - `connectorSettingsMap` object
    - `retentionProfile` 'STANDARD' | 'NO_PAYLOAD' | 'NO_PERSIST'
    - `overrideEnvironmentRestrictions` boolean
    - `connectorLabelByKey` object
    - `anyPolicyExecutionTimeEnabled` boolean
  - `resultCount` integer

## Other responses

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

## Changes

- **2026-10-28** `e083046b24cd`: 8 info
  - added the new optional request property `connectorSettingsMap/additionalProperties/clientBanMetadataOnly`
  - added the new optional request property `connectorSettingsMap/additionalProperties/logClientAddress`
  - added the new optional request property `methodOverrideList/items/connectorSettingsMap/additionalProperties/clientBanMetadataOnly`
  - added the new optional request property `methodOverrideList/items/connectorSettingsMap/additionalProperties/logClientAddress`
  - …4 more
- **2026-08-11** `9ae232e55479`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/apinizer/apis/apinizer-management-apis/changes/apiops/projects/:projectName/apiProxies/:apiProxyName/trafficLogSettings/:environmentName/put.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)
