---
title: "Update tunnels project access settings"
method: PUT
path: "/api/projects/tunnels/{projectId}/settings"
tags: ["projects"]
---

# Update tunnels project access settings

`PUT /api/projects/tunnels/{projectId}/settings`

## Request

- Base URL: `https://rstream.io`
- URL: `https://rstream.io/api/projects/tunnels/{projectId}/settings`
- Auth: HTTP bearer

## Path parameters

- `projectId` string, required

## Request body

- UpdateTunnelsProjectSettingsParams
  - `publicAccessPolicy` 'allowed' | 'auth-required' | 'forbidden'
  - `trustedIps` string[]
  - `geoRestrictions` string[]
  - `minimumTlsVersion` 'tls1.2' | 'tls1.3'
  - `postQuantumKeyExchange` 'preferred' | 'required'
  - `postQuantumUseNistFipsHybridGroups` boolean
  - `encryptedClientHello` 'preferred' | 'required'
  - `tlsPassthroughEnabled` boolean
  - `publishedTcpEnabled` boolean

## Response `200`

Successful response.

- UpdateTunnelsProjectSettingsResponse
  - `publicAccessPolicy` 'allowed' | 'auth-required' | 'forbidden'
  - `trustedIps` string[]
  - `geoRestrictions` string[]
  - `minimumTlsVersion` 'tls1.2' | 'tls1.3'
  - `postQuantumKeyExchange` 'preferred' | 'required'
  - `postQuantumUseNistFipsHybridGroups` boolean
  - `encryptedClientHello` 'preferred' | 'required'
  - `tlsPassthroughEnabled` boolean
  - `publishedTcpEnabled` boolean

## Other responses

- `400`: Request validation failed.
- `401`: Authentication is required.
- `403`: The token is not authorized.
- `404`: Project not found.

---

[API](https://skmtc.dev/rstream/apis/rstream-api.md) · [All operations](https://skmtc.dev/rstream/apis/rstream-api/llms.txt) · [OpenAPI document](https://skmtc.dev/rstream/apis/rstream-api/revisions/a840a2c91f22?raw)
