---
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 and authentication token duration.
  - `port` number, double, required — The port on which the engine listens.
  - `authTokenDuration` '1h' | '1d' | '6h' | '3d' | '7d' | '14d' | '30d', required — Type representing an allowed authentication token duration.

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

---

[API](https://skmtc.net/optimistiksas/apis/oibus-api.md) · [All operations](https://skmtc.net/optimistiksas/apis/oibus-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/optimistiksas/oibus-api/versions/743d1b62f042/schema)
