4b3471151a8b
latestOpenAPI 3.1.02026-08-1084336455.2 KBEnvironments
Add Environment
Authorization scope: environment:edit
Creates a new environment entity
post/v1/accounts/{account_id}/environments
Path parameters
account_idstring required
Request body
Example request
{
"name": "Dev Environment",
"description": "Development environment for new rivers",
"is_default": true
}Response
Successful Response
Example response
{
"_id": "633ede20f1fc5500111fd7b3",
"account": "62e7f4352c13160013dc39be",
"user_created": "62e7f4352c13160013dc39be",
"cross_id": "62e7f4352c13160013dc39be",
"environment_name": "Dev Environment",
"description": "Development environment for new rivers",
"variables": {
"aws_file_zone": "Rivery-rivery",
"azure_file_zone": "Rivery-rivery",
"days_ago": "0",
"gcs_file_zone": "Rivery-rivery",
"hours_offset": "0"
},
"deleted_by": "62e7f4352c13160013dc39be",
"is_default": true,
"updated_by": "62e7f4352c13160013dc39be",
"is_delete_lock": true
}