Skip to main content
PATCH
Update environment

Authorizations

Authorization
string
header
required

Use a JWT bearer token or a Veryfront API key in the Authorization header.

Path Parameters

project_reference
string
required

Project slug, UUID, or domain that identifies the project.

environment_id
string<uuid>
required

Environment ID

Body

application/json
name
string

New environment name

protected
boolean

Whether the environment is protected

variables
object[]

Atomic variable upserts in this environment. Existing keys retain their IDs; omitted keys remain unchanged and returned values are masked. A non-empty list also requires project.env_vars.write.

Response

Environment updated successfully

id
string<uuid>
required
name
string
required
project_id
string<uuid>
required
protected
boolean
required
domains
string[]
required

Custom domains attached to the environment.

environment_variables
object[]
required

Variable metadata with masked values.

deployment
object | null

Latest deployment in the environment.

created_at
string
updated_at
string