{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aqara/json-schema/aqara-subdevice-join-request-schema.json",
  "title": "SubdeviceJoinRequest",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/data-export-api-zh.yaml#/components/schemas/SubdeviceJoinRequest",
  "type": "object",
  "required": [
    "gatewayId",
    "commandCode"
  ],
  "properties": {
    "gatewayId": {
      "type": "string",
      "description": "网关设备 ID。"
    },
    "commandCode": {
      "type": "string",
      "enum": [
        "APIEnableSubdeviceJoining"
      ],
      "description": "入网命令编码：\n- `APIEnableSubdeviceJoining`: 标准 Zigbee 设备入网（例如通过按键触发入网模式）。\n"
    },
    "data": {
      "type": "object",
      "description": "入网参数（JSON 对象），根据不同的 commandCode，需传入的参数说明如下：\n- `APIEnableSubdeviceJoining`: 无需传入此字段。\n"
    }
  }
}