{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/easee/json-schema/easee-access-control-api-site-dto-schema.json",
  "title": "Access_Control_API_SiteDTO",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/easee-account-api-openapi.yml#/components/schemas/Access_Control_API_SiteDTO",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "uuid": {
      "type": "string",
      "format": "guid"
    },
    "siteKey": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "levelOfAccess": {
      "oneOf": [
        {
          "$ref": "#/$defs/Access_Control_API_LevelOfAccess"
        }
      ]
    },
    "address": {
      "oneOf": [
        {
          "$ref": "#/$defs/Access_Control_API_AddressDTO"
        }
      ]
    },
    "siteType": {
      "oneOf": [
        {
          "$ref": "#/$defs/Access_Control_API_SiteType"
        }
      ]
    },
    "ratedCurrent": {
      "type": "number",
      "format": "double"
    },
    "partnerId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "operator": {
      "oneOf": [
        {
          "$ref": "#/$defs/Access_Control_API_SiteOperatorDTO"
        }
      ]
    },
    "circuits": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Access_Control_API_CircuitDTO"
      }
    },
    "equalizers": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Access_Control_API_EqualizerDTO"
      }
    },
    "userRole": {
      "oneOf": [
        {
          "$ref": "#/$defs/Access_Control_API_SiteUserRole"
        }
      ]
    },
    "allowedSiteActions": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "regulations": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Access_Control_API_SiteRegulationDto"
      }
    }
  },
  "$defs": {
    "Access_Control_API_AddressDTO": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "street": {
          "type": [
            "string",
            "null"
          ]
        },
        "buildingNumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "zip": {
          "type": [
            "string",
            "null"
          ]
        },
        "area": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "oneOf": [
            {
              "$ref": "#/$defs/Access_Control_API_CountryDTO"
            }
          ]
        },
        "latitude": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "longitude": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "altitude": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        }
      }
    },
    "Access_Control_API_BackPlateDTO": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "masterBackPlateId": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "Access_Control_API_ChargerColorType": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "Black",
        "Red",
        "Blue",
        "White",
        "Anthracite"
      ],
      "enum": [
        1,
        2,
        3,
        4,
        5
      ]
    },
    "Access_Control_API_ChargerDTO": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "levelOfAccess": {
          "oneOf": [
            {
              "$ref": "#/$defs/Access_Control_API_LevelOfAccess"
            }
          ]
        },
        "userRole": {
          "oneOf": [
            {
              "$ref": "#/$defs/Access_Control_API_SiteUserRole"
            }
          ]
        },
        "productCode": {
          "oneOf": [
            {
              "$ref": "#/$defs/Access_Control_API_ProductType"
            }
          ]
        },
        "backPlate": {
          "oneOf": [
            {
              "$ref": "#/$defs/Access_Control_API_BackPlateDTO"
            }
          ]
        },
        "isTemporary": {
          "type": "boolean"
        },
        "color": {
          "oneOf": [
            {
              "$ref": "#/$defs/Access_Control_API_ChargerColorType"
            }
          ]
        },
        "createdOn": {
          "type": "string",
          "format": "date-time"
        },
        "updatedOn": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "Access_Control_API_CircuitDTO": {
      "type": "object",
      "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"
        },
        "chargers": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Access_Control_API_ChargerDTO"
          }
        },
        "masterBackplate": {
          "oneOf": [
            {
              "$ref": "#/$defs/Access_Control_API_BackPlateDTO"
            }
          ]
        },
        "useDynamicMaster": {
          "type": "boolean"
        },
        "parentCircuitId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        }
      }
    },
    "Access_Control_API_CountryDTO": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "phonePrefix": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "Access_Control_API_EqualizerDTO": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "siteId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "circuitId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        }
      }
    },
    "Access_Control_API_LevelOfAccess": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "Open",
        "EaseeAccounts",
        "SpecificUsers"
      ],
      "enum": [
        1,
        2,
        3
      ]
    },
    "Access_Control_API_OperatorGroupEnum": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "Default",
        "HasOnboardingFlow"
      ],
      "enum": [
        0,
        1
      ]
    },
    "Access_Control_API_ProductType": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "EaseeHome",
        "EaseeCharge",
        "EaseeOne",
        "Equalizer"
      ],
      "enum": [
        1,
        100,
        400,
        1000
      ]
    },
    "Access_Control_API_Regulation": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "UkSmartCharging2021",
        "FrNfC15100PermaTethering"
      ],
      "enum": [
        1,
        2
      ]
    },
    "Access_Control_API_SiteOperatorDTO": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "operatorId": {
          "type": "integer",
          "format": "int32"
        },
        "operatorGroup": {
          "$ref": "#/$defs/Access_Control_API_OperatorGroupEnum"
        }
      }
    },
    "Access_Control_API_SiteRegulationDto": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "regulation": {
          "$ref": "#/$defs/Access_Control_API_Regulation"
        },
        "createdOn": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "Access_Control_API_SiteType": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "EaseeHome",
        "EaseeCharge"
      ],
      "enum": [
        1,
        100
      ]
    },
    "Access_Control_API_SiteUserRole": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "Owner",
        "Admin",
        "BasicUser",
        "ChargerUser"
      ],
      "enum": [
        1,
        2,
        3,
        20
      ]
    }
  }
}