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

namestring required

The new name of the environment.

Response

Environment name successfully updated.

statusboolean

Whether the request succeeded.

messagestring

Human-readable description of the result.

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.