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.
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 <novu_secret_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
@minItems 0
@minItems 0
_parentIdstringParent environment ID
slugstringURL-friendly slug for the environment
Environment schema
Reference the Novu environment schema used in API requests and responses. Review fields, data types, and object structure for this resource.
Update an environment PUT
Update an environment by its unique identifier **environmentId**. You can modify the environment name, identifier, color, and other configuration settings.