{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Update Environment",
  "description": "Update an existing environment's name and description. The ID cannot be changed after creation.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "title": "Environment Name",
      "description": "A human-readable name for the environment",
      "minLength": 1,
      "examples": ["Production", "Staging", "Development", "Preview"]
    },
    "description": {
      "type": "string",
      "title": "Environment Description",
      "description": "An optional description of the environment's purpose",
      "maxLength": 255,
      "examples": ["Production environment for customer-facing services"]
    },
    "attributes": {
      "type": "object",
      "title": "Attributes",
      "description": "Key-value attributes for this environment. Keys and values must be strings. Must conform to the organization's custom attributes for the environment scope.",
      "additionalProperties": { "type": "string" },
      "x-gql-type": "map"
    }
  }
}
