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

# Put Yamato Policy

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

## Request

- Base URL: `https://api.tabtabtab.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tabtabtab.ai/v1/envs/{env_id}/yamato/policy`
- Auth: none declared

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/tabtabtab-api.md) - [All operations](https://skmtc.dev/tabtabtab/apis/tabtabtab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tabtabtab/apis/tabtabtab-api/revisions/73961d1e6152?raw)
