Environments
Update
Update environment
PATCH
/
api
/
v1
/
workspace
/
{workspaceId}
/
environments
/
{id}
Authorizations
Authorization
string
headerrequiredAn access token in Infisical
Path Parameters
workspaceId
string
requiredThe ID of the project to update the environment in.
id
string
requiredThe 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
requiredworkspace
string
requiredenvironment
object
required