{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eaton/json-schema/eaton-batch-device-command-schema.json",
  "title": "BatchDeviceCommand",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eaton-device-commands-api-openapi.yml#/components/schemas/BatchDeviceCommand",
  "type": "object",
  "required": [
    "deviceIds",
    "command"
  ],
  "properties": {
    "deviceIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "command": {
      "$ref": "#/$defs/DeviceCommand"
    }
  },
  "$defs": {
    "DeviceCommand": {
      "type": "object",
      "required": [
        "command"
      ],
      "properties": {
        "command": {
          "type": "string",
          "enum": [
            "open",
            "close",
            "cycle"
          ]
        },
        "reason": {
          "type": "string"
        }
      }
    }
  }
}