{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/stackit/main/json-schema/stackit-create-environment-payload-schema.json",
  "title": "CreateEnvironmentPayload",
  "description": "Environment describes an isolated container scope within a project.",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stackit-sca-openapi.yml#/components/schemas/CreateEnvironmentPayload",
  "properties": {
    "createdAt": {
      "description": "Creation date in RFC3339 format.",
      "format": "date-time",
      "readOnly": true,
      "type": "string"
    },
    "default": {
      "description": "Is the default environmet.",
      "readOnly": true,
      "type": "boolean"
    },
    "displayName": {
      "description": "Human-readable display name.",
      "type": "string"
    },
    "id": {
      "description": "Environment identifier, for example: default.",
      "readOnly": true,
      "type": "string"
    },
    "status": {
      "$ref": "#/$defs/EnvironmentStatus"
    }
  },
  "required": [
    "displayName"
  ],
  "type": "object",
  "$defs": {
    "EnvironmentStatus": {
      "default": "ENVIRONMENT_STATUS_UNSPECIFIED",
      "description": " - ENVIRONMENT_STATUS_UNSPECIFIED: Used as zero value.\n - ENVIRONMENT_STATUS_PROGRESSING: Environment is being created.\n - ENVIRONMENT_STATUS_CREATED: Environment is successfully created.",
      "enum": [
        "ENVIRONMENT_STATUS_UNSPECIFIED",
        "ENVIRONMENT_STATUS_PROGRESSING",
        "ENVIRONMENT_STATUS_CREATED"
      ],
      "type": "string"
    }
  }
}