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

Body

application/json
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.

name
string
protected
boolean

Response

Environment updated successfully

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

Custom domains attached to the environment.

environment_variables
object[]
required

Variable metadata with masked values.

protected
boolean
deployment
object | null

Latest deployment in the environment.

created_at
string
updated_at
string