{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aqara/json-schema/aqara-create-space-request-schema.json",
  "title": "CreateSpaceRequest",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aiot-api-zh.yaml#/components/schemas/CreateSpaceRequest",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "parentSpaceId": {
      "type": [
        "string",
        "null"
      ],
      "description": "父空间 ID ；为空时创建顶级空间。"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "description": "空间名称，不能为空字符串。"
    },
    "settings": {
      "$ref": "#/$defs/SpaceSettings"
    }
  },
  "$defs": {
    "SpaceSettings": {
      "type": "object",
      "description": "空间配置属性。",
      "properties": {
        "gmtTimeZone": {
          "type": "string",
          "description": "标准 GMT 格式时区，如 GMT+08:00。"
        },
        "locationId": {
          "type": [
            "string",
            "null"
          ],
          "description": "家庭位置标识，支持经纬度串（如 \"123.456,78.90\"）或城市编码（如 \"30372\"）。"
        },
        "autoAdjustDst": {
          "type": "boolean",
          "default": true,
          "description": "是否自动适应夏令时（Daylight Saving Time）。"
        }
      }
    }
  }
}