---
title: "Put Yamato Policy"
method: PUT
path: "/v1/envs/{env_id}/yamato/policy"
---

# Put Yamato Policy

`PUT /v1/envs/{env_id}/yamato/policy`

Persist Yamato policy intent without applying it to the VM.

## Path parameters

- `env_id` string, required

## Request body

- EnvEgressPolicyInput — User-writable subset of an env's egress policy.
  - `mode` 'disabled' | 'audit' | 'enforce'
  - `allowReadonlyBrowsing` boolean
  - `allow` EgressAllowEntry[]
    - `host` string, required
    - `subdomains` boolean
    - `ports` integer[], nullable

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/tabtabtab/apis/fastapi.md) · [All operations](https://skmtc.dev/tabtabtab/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tabtabtab/fastapi/revisions/73961d1e6152/schema)
