{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/easee/json-schema/easee-easee-cloud-api-circuit-dto2-schema.json",
  "title": "Easee_Cloud_API_CircuitDTO2",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/easee-site-api-openapi.yml#/components/schemas/Easee_Cloud_API_CircuitDTO2",
  "allOf": [
    {
      "$ref": "#/$defs/Easee_Cloud_API_BasicCircuitDTO"
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "chargers": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Easee_Cloud_API_DetailChargerDTO"
          }
        },
        "masterBackplate": {
          "oneOf": [
            {
              "$ref": "#/$defs/Easee_Cloud_API_BackPlateDTO"
            }
          ]
        },
        "useDynamicMaster": {
          "type": "boolean"
        },
        "parentCircuitId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        }
      }
    }
  ],
  "$defs": {
    "Easee_Cloud_API_BackPlateDTO": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "masterBackPlateId": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "features": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Easee_Cloud_API_BackPlateFeature"
          }
        },
        "variant": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "Easee_Cloud_API_BackPlateFeature": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "UkOffpeak",
        "UkRandomStartDelay",
        "FrPermaTether"
      ],
      "enum": [
        0,
        1,
        2
      ]
    },
    "Easee_Cloud_API_BasicCircuitDTO": {
      "allOf": [
        {
          "$ref": "#/$defs/Easee_Cloud_API_CircuitBase"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "uuid": {
              "type": [
                "string",
                "null"
              ],
              "format": "guid"
            }
          }
        }
      ]
    },
    "Easee_Cloud_API_ChargerColorType": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "Black",
        "Red",
        "Blue",
        "White",
        "Anthracite"
      ],
      "enum": [
        1,
        2,
        3,
        4,
        5
      ]
    },
    "Easee_Cloud_API_ChargerDTO": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "color": {
          "oneOf": [
            {
              "$ref": "#/$defs/Easee_Cloud_API_ChargerColorType"
            }
          ]
        },
        "createdOn": {
          "type": "string",
          "format": "date-time"
        },
        "updatedOn": {
          "type": "string",
          "format": "date-time"
        },
        "backPlate": {
          "oneOf": [
            {
              "$ref": "#/$defs/Easee_Cloud_API_BackPlateDTO"
            }
          ]
        },
        "levelOfAccess": {
          "oneOf": [
            {
              "$ref": "#/$defs/Easee_Cloud_API_LevelOfAccess"
            }
          ]
        },
        "productCode": {
          "oneOf": [
            {
              "$ref": "#/$defs/Easee_Cloud_API_ProductType"
            }
          ]
        }
      }
    },
    "Easee_Cloud_API_CircuitBase": {
      "type": "object",
      "x-abstract": true,
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "siteId": {
          "type": "integer",
          "format": "int32"
        },
        "circuitPanelId": {
          "type": "integer",
          "format": "int32"
        },
        "panelName": {
          "type": [
            "string",
            "null"
          ]
        },
        "ratedCurrent": {
          "type": "number",
          "format": "double"
        },
        "fuse": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        }
      }
    },
    "Easee_Cloud_API_DetailChargerDTO": {
      "allOf": [
        {
          "$ref": "#/$defs/Easee_Cloud_API_ChargerDTO"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "userRole": {
              "oneOf": [
                {
                  "$ref": "#/$defs/Easee_Cloud_API_SiteUserRole2"
                }
              ]
            },
            "isTemporary": {
              "type": "boolean"
            }
          }
        }
      ]
    },
    "Easee_Cloud_API_LevelOfAccess": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "Open",
        "EaseeAccounts",
        "SpecificUsers"
      ],
      "enum": [
        1,
        2,
        3
      ]
    },
    "Easee_Cloud_API_ProductType": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "EaseeHome",
        "ChargeLite",
        "EaseeCharge",
        "EaseeOne",
        "Equalizer"
      ],
      "enum": [
        1,
        2,
        100,
        400,
        1000
      ]
    },
    "Easee_Cloud_API_SiteUserRole2": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "Owner",
        "Admin",
        "BasicUser",
        "ChargerUser"
      ],
      "enum": [
        1,
        2,
        3,
        20
      ]
    }
  }
}