Environment
Update environment
Updates the name of an existing environment. Provide the environment ID in the path and the new environment name in the request body to modify the specified environment.
put/core/environments/{id}
Request
- Base URL: https://infrahub-api.nexgencloud.com/v1
- URL: https://infrahub-api.nexgencloud.com/v1/core/environments/{id}
- Auth: API key in header api_key
Path parameters
idinteger required
ID of the environment.
Request body
Response
Environment name successfully updated.
Example response
{
"status": true,
"message": "Environment example-environment is created successfully",
"environment": {
"id": 3287,
"name": "example-environment",
"region": "NORWAY-1",
"created_at": "2026-05-06T16:04:09Z",
"features": {
"green_status": "GREEN"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.