{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hasmcp/json-schema/hasmcp-update-variable-response-schema.json",
  "title": "UpdateVariableResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hasmcp-variables-api-openapi.yml#/components/schemas/UpdateVariableResponse",
  "type": "object",
  "properties": {
    "variable": {
      "$ref": "#/$defs/Variable"
    }
  },
  "$defs": {
    "Variable": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[A-Za-z0-9]{11}$",
          "readOnly": true
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "0: INVALID, 1: ENV, 2: SECRET"
        },
        "value": {
          "type": "string",
          "description": "The variable's value. Will be '***' if type is SECRET on retrieval."
        },
        "name": {
          "type": "string"
        }
      }
    }
  }
}