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.

slug
string
required

The slug of the environment to create.

Required string length: 1 - 64
position
number

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

Required range: x > 1

Response

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

Was this page helpful?