---
title: "Update log-forwarding configuration"
method: PUT
path: "/log/forwarding/{appId}"
tags: ["Log Forwarding"]
---

# Update log-forwarding configuration

`PUT /log/forwarding/{appId}`

## Request

- Base URL: `https://api.bunny.net/mc`
- URL: `https://api.bunny.net/mc/log/forwarding/{appId}`
- Auth: API key in header `AccessKey`
- TypeScript: <https://skmtc.dev/bunny/apis/magic-containers-api/docs/log/forwarding/:appId/put.ts> (a function with typed inputs; its response is checked against the schema)

Update an existing log-forwarding configuration.

## Path parameters

- `appId` string, required

## Request body

- CreateLogForwardingRequest
  - `app` string, required: App unique identifier
  - `type` 'SyslogUdp' | 'SyslogTcp', required: Log endpoint type
  - `endpoint` string, required: Log destination endpoint
  - `port` integer, required: Log destination port
  - `token` string: Token passed as field of syslog
  - `format` 'SyslogRfc3164' | 'SyslogRfc5424', required: Which Syslog RFC will be used
  - `enabled` boolean, required: Whether forwarding is enabled

## Response `200`

Log-forwarding configuration updated successfully.

- LogForwardingConfiguration
  - `id` string: Unique identifier
  - `app` string: App unique identifier
  - `productId` string: Product unique identifier
  - `type` 'SyslogUdp' | 'SyslogTcp': Log endpoint type
  - `endpoint` string: Log destination endpoint
  - `port` integer: Log destination port
  - `createdAt` string, date-time: When the configuration was created
  - `token` string: Token passed as field of syslog
  - `format` 'SyslogRfc3164' | 'SyslogRfc5424': Which Syslog RFC will be used
  - `enabled` boolean: Whether forwarding is enabled

## Other responses

- `400`: Invalid input.
- `403`: User is unauthorized.
- `404`: Log-forwarding configuration not found.
- `500`: Unexpected server error.

## Changes

- **2026-08-08** `0054dcaa32fb`: 1 info
  - api operation id `UpdateLogForwardingConfiguration` was added

[Operation history](https://skmtc.dev/bunny/apis/magic-containers-api/changes/log/forwarding/:appId/put.md)

---

[API](https://skmtc.dev/bunny/apis/magic-containers-api.md) - [All operations](https://skmtc.dev/bunny/apis/magic-containers-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/magic-containers-api/revisions/7bb58a0591b0?raw)
