---
title: "PUT /projects/{project_id}/environments/{env_id}/ingress"
method: PUT
path: "/projects/{project_id}/environments/{env_id}/ingress"
tags: ["Environments"]
---

# PUT /projects/{project_id}/environments/{env_id}/ingress

`PUT /projects/{project_id}/environments/{env_id}/ingress`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/environments/{env_id}/ingress`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `env_id` integer, required

## Request body

- UpdateIngressSettingsRequest
  - `mode` 'legacy' | 'shadow' | 'enforce', nullable
  - `require_login` boolean, nullable: Leave out to keep the current setting.

## Response `200`

Ingress settings updated

- IngressSettingsResponse
  - `environment_id` integer, required
  - `login_enforced` boolean, required: Whether the proxy asks for the login right now: only in `enforce`.
  - `login_permission` string, nullable: The console permission a visitor needs, when a login is required.
  - `mode` 'legacy' | 'shadow' | 'enforce', required: `legacy`: the existing access chain decides. `shadow`: it still decides, and the compiled endpoint is evaluated alongside and every disagreement counted (`proxy.ingress_shadow_mismatches`). `enforce`: the compiled endpoint decides.
  - `project_id` integer, required
  - `require_login` boolean, required: Whether visitors must sign in to Temps.

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Environment not found
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 4 breaking
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `404` status
  - removed the required property `extensions` from the response with the `500` status
- **2026-10-28** `b8d51a990805`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/environments/:env_id/ingress/put.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
