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/json
Requiredname
RequiredstringName of the environment to be created
parentId
stringMongoDB ObjectId of the parent environment (optional)
color
RequiredstringHex color code for the environment
Header Parameters
idempotency-key
stringA header for idempotency purposes
Response Body
Created
_id
RequiredstringUnique identifier of the environment
name
RequiredstringName of the environment
_organizationId
RequiredstringOrganization ID associated with the environment
identifier
RequiredstringUnique identifier for the environment
apiKeys
array<object>List of API keys associated with the environment
@minItems 0
_parentId
stringParent environment ID
slug
stringURL-friendly slug for the environment