POST
/
api
/
v1
/
workspace
/
{workspaceId}
/
environments

Authorizations

Authorization
string
headerrequired

An access token in Infisical

Path Parameters

workspaceId
string
required

The ID of the project to create the environment in.

Body

application/json
name
string
required

The name of the environment to create.

position
number

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

slug
string
required

The slug of the environment to create.

Response

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

Was this page helpful?