{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eagle-eye-networks/json-schema/eagle-eye-networks-api-bridge-main-schema.json",
  "title": "ApiBridgeMain",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eagle-eye-networks-bridges-api-openapi.yml#/components/schemas/ApiBridgeMain",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique bridge identifier"
    },
    "accountId": {
      "type": "string",
      "description": "Account ID specified in as an ESN Type.",
      "pattern": "^[a-fA-F0-9]{8}$"
    },
    "name": {
      "$ref": "#/$defs/DeviceName"
    },
    "locationId": {
      "$ref": "#/$defs/LocationId"
    },
    "createTimestamp": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    }
  },
  "required": [
    "id",
    "accountId",
    "name",
    "createTimestamp"
  ],
  "$defs": {
    "DeviceName": {
      "description": "User-defined name for the device.",
      "type": "string",
      "minLength": 1,
      "maxLength": 126
    },
    "LocationId": {
      "description": "ID Of the location.",
      "minLength": 1,
      "type": [
        "string",
        "null"
      ]
    }
  }
}