Skip to main content
POST
Create Environment

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

X-Workspace-Id
string | null

Path Parameters

team_id
string<uuid>
required
project_id
string<uuid>
required
workspace_id
string<uuid> | null
required

Body

application/json
name
string
required
environment_type
enum<string>
required
Available options:
dev,
staging,
prod,
pilot,
custom
default_policy
integer | null

Response

Successful Response

id
string<uuid4>
required
name
string
required
slug
string
required
environment_type
enum<string>
required
Available options:
dev,
staging,
prod,
pilot,
custom
created_at
string<date-time>
required