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

Authorizations

Authorization
string
headerrequired

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
slug
string

The new slug of the environment.

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.

Response

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

Was this page helpful?