v1
latestOpenAPI 3.0.02026-07-13103151174.7 KBEnvironments
Create Environment
Create a new environment for a project. The environment key must be unique within the project. Multiple environments can share a type. Creating an environment will auto-generate a set of SDK Keys for the various types of SDKs. When permissions are enabled for the organization, the token must have Publisher permissions for the environment to be created.
post/v1/projects/{project}/environments
Path parameters
projectstring required
A Project key or ID
Request body
Example request
{
"name": "Staging Upcoming",
"key": "staging-upcoming",
"description": "Pre-production changes",
"color": "#4073FF",
"type": "staging"
}Response
Example response
{
"name": "Staging Upcoming",
"key": "staging-upcoming",
"description": "Pre-production changes",
"color": "#4073FF",
"_id": "61450f3daec96f5cf4a49946",
"type": "staging"
}