---
title: "Update web server settings"
method: PUT
path: "/api/engine/web-server"
tags: ["Engine"]
---

# Update web server settings

`PUT /api/engine/web-server`

Updates only the web server port

## Request body

- EngineWebServerCommandDTO — Engine web server command Data Transfer Object. Used as the request body for updating only the web server port.
  - `port` number, double, required — The port on which the engine listens.

## Response `200`

Engine web server settings updated successfully

- EngineSettingsUpdateResultDTO — Engine settings update result Data Transfer Object. Returned after updating engine settings to indicate if a redirect is needed.
  - `needsRedirect` boolean, required — Whether the client needs to redirect due to a port change.
  - `newPort` number, double, nullable, required — The new port to redirect to, if applicable.

## Changes

- **2026-06-02** `3536399ceee0` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/optimistiksas/apis/oibus-api/changes/api/engine/web-server/put.md)

---

[API](https://skmtc.dev/optimistiksas/apis/oibus-api.md) · [All operations](https://skmtc.dev/optimistiksas/apis/oibus-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/optimistiksas/oibus-api/revisions/8d792facf7b9/schema)
