PATCH
Update an environment

Authorizations

Authorization
string
header
required

A server API key, ask_.... Carries a role.

Path Parameters

id
string
required
Example:

"env_0123456789abcdef01234567"

Body

application/json
name
string
Required string length: 1 - 100
network
enum<string>

none blocks all outbound traffic. limited allows only allowed_hosts. full allows any host.

Available options:
none,
limited,
full
allowed_hosts
string[]
git
object
mcp
object
image
string | null
packages
any
metadata
object

Response

The updated environment.

id
string
required
object
string
required
Allowed value: "environment"
name
string
required
network
enum<string>
required

none blocks all outbound traffic. limited allows only allowed_hosts. full allows any host.

Available options:
none,
limited,
full
allowed_hosts
string[]
required
git
object
required
mcp
object
required
image
string | null
required
packages
object
required
metadata
object
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
worker_count
integer

Workers that claimed or heartbeat in the last 60 seconds.

queue_depth
integer

Work items waiting to be claimed.