---
title: "Update a log forwarder."
method: PATCH
path: "/groups/{groupId}/apps/{appId}/log_forwarders/{forwarderId}"
tags: ["log_forwarders"]
---

# Update a log forwarder.

`PATCH /groups/{groupId}/apps/{appId}/log_forwarders/{forwarderId}`

## Request body

- LogForwarderConstructor
  - `name` string, required
  - `disabled` boolean, required
  - `log_types` LogType[], required
  - `log_statuses` LogStatus[], required
  - `policy` LogForwardingPolicy, required
    - `type` 'single' | 'batch'
  - `action` LogForwardingAction, required
    - `type` 'collection' | 'function'
    - `name` string
    - `data_source` string
    - `database` string
    - `collection` string

## Response `200`

OK

- LogForwarder
  - `_id` string
  - `name` string, required
  - `disabled` boolean, required
  - `log_types` LogType[], required
  - `log_statuses` LogStatus[], required
  - `policy` LogForwardingPolicy, required
    - `type` 'single' | 'batch'
  - `action` LogForwardingAction, required
    - `type` 'collection' | 'function'
    - `name` string
    - `data_source` string
    - `database` string
    - `collection` string

## Changes

- **2024-02-22** (v3) `2ac2149ab3ee` — 2 warning, 2 info
  - added the new `endpoint` enum value to the `allOf[#/components/schemas/LogForwarderConstructor]/log_types/items/` response property for the response status `200`
  - added the new `trigger_error_handler` enum value to the `allOf[#/components/schemas/LogForwarderConstructor]/log_types/items/` response property for the response status `200`
  - added the new `endpoint` enum value to the request property `log_types/items/`
  - added the new `trigger_error_handler` enum value to the request property `log_types/items/`
- **2024-02-20** (v3) `e2240dd053bd` — 8 breaking, 7 warning, 1 info
  - added the new required request property `action`
  - added the new required request property `disabled`
  - added the new required request property `log_statuses`
  - added the new required request property `log_types`
  - …12 more

[Change history](https://skmtc.dev/mongodb/apis/mongodb-atlas-app-services-admin-api/changes/groups/:groupId/apps/:appId/log_forwarders/:forwarderId/patch.md)

---

[API](https://skmtc.dev/mongodb/apis/mongodb-atlas-app-services-admin-api.md) · [All operations](https://skmtc.dev/mongodb/apis/mongodb-atlas-app-services-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mongodb/mongodb-atlas-app-services-admin-api/revisions/1365ab72bc03/schema)
