PATCH
/
api
/
v1
/
workspace
/
{workspaceId}
/
environments
/
{id}

Authorizations

Authorization
string
header
required

An access token in Infisical

Path Parameters

workspaceId
string
required

The ID of the project to update the environment in.

id
string
required

The ID of the environment to update.

Body

application/json
name
string

The new name of the environment.

position
number

The new position of the environment. The lowest number will be displayed as the first environment.

slug
string

The new slug of the environment.

Required string length: 1 - 64

Response

200 - application/json
environment
object
required
message
string
required
workspace
string
required

Was this page helpful?