v4

latestOpenAPI 3.0.02026-08-04109113304.5 KB
Environments

Create an Environment

Create an Environment in a provided Project

post/environments

Request body

archivedboolean

Boolean representing whether the Environment is archived.

createdstring

Created time.

descriptionstring

A short description of the Environment.

has_restricted_permissionsboolean

Boolean representing whether starting experiments should be restricted to publishers and above in this Environment.

idinteger

ID of this Environment.

is_primaryboolean

Boolean representing if this is the primary (default) Environment.

keystring required

Unique string identifier for this Environment within the Project.

last_modifiedstring

Last modification time.

namestring required

Name of the Environment.

priorityinteger

Integer representing the priority of the Environment. This is used for ordering in the UI.

project_idinteger required

ID of the project of the Environment.

Example request

{
  "description": "For testing purposes before deploying to Production",
  "name": "Staging",
  "priority": 3
}

Response

Return the created Environment

archivedboolean

Boolean representing whether the Environment is archived.

createdstring

Created time.

descriptionstring

A short description of the Environment.

has_restricted_permissionsboolean

Boolean representing whether starting experiments should be restricted to publishers and above in this Environment.

idinteger

ID of this Environment.

is_primaryboolean

Boolean representing if this is the primary (default) Environment.

keystring required

Unique string identifier for this Environment within the Project.

last_modifiedstring

Last modification time.

namestring required

Name of the Environment.

priorityinteger

Integer representing the priority of the Environment. This is used for ordering in the UI.

project_idinteger required

ID of the project of the Environment.

Example response

{
  "description": "For testing purposes before deploying to Production",
  "name": "Staging",
  "priority": 3
}