Create an environment
Creates a new environment within the current organization. Environments allow you to manage different stages of your application development lifecycle. Each environment has its own set of API keys and configurations.
Authorization
Authorization<token>API key authentication. Allowed headers-- "Authorization: ApiKey <api_key>".
In: header
Request Body
application/jsonRequirednameRequiredstringName of the environment to be created
parentIdstringMongoDB ObjectId of the parent environment (optional)
colorRequiredstringHex color code for the environment
Header Parameters
idempotency-keystringA header for idempotency purposes
Response Body
Created
_idRequiredstringUnique identifier of the environment
nameRequiredstringName of the environment
_organizationIdRequiredstringOrganization ID associated with the environment
identifierRequiredstringUnique identifier for the environment
typestring | nullType of the environment
"dev" | "prod"apiKeysarray<object>List of API keys associated with the environment
_parentIdstringParent environment ID
slugstringURL-friendly slug for the environment