{
  "components": {
    "schemas": {
      "AnalysisResultAttributes": {
        "properties": {
          "co2_intensity": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**CO\u2082 intensity** \u00b7 **CO\u2082-Intensit\u00e4t**",
            "title": "Co2 Intensity"
          },
          "energy_intensity": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Energy intensity** \u00b7 **Energieintensit\u00e4t**",
            "title": "Energy Intensity"
          },
          "final_energy_intensity": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Final energy intensity** \u00b7 **Endenergieintensit\u00e4t**",
            "title": "Final Energy Intensity"
          },
          "primary_energy_intensity": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Primary energy intensity** \u00b7 **Prim\u00e4renergieintensit\u00e4t**",
            "title": "Primary Energy Intensity"
          },
          "scope_1_emissions": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Scope 1 emissions** \u00b7 **Scope-1-Emissionen**",
            "title": "Scope 1 Emissions"
          },
          "scope_2_emissions": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Scope 2 emissions** \u00b7 **Scope-2-Emissionen**",
            "title": "Scope 2 Emissions"
          },
          "scope_3_emissions": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Scope 3 emissions** \u00b7 **Scope-3-Emissionen**",
            "title": "Scope 3 Emissions"
          },
          "self_supply_rate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Self-supply rate** \u00b7 **Eigenversorgungsquote**",
            "title": "Self Supply Rate"
          },
          "total_consumption": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Total consumption** \u00b7 **Gesamtverbrauch**",
            "title": "Total Consumption"
          },
          "total_emissions": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Total emissions** \u00b7 **Gesamtemissionen**",
            "title": "Total Emissions"
          },
          "total_energy_generated": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Total energy generated** \u00b7 **Erzeugte Energie (gesamt)**",
            "title": "Total Energy Generated"
          },
          "year": {
            "description": "**Year** \u00b7 **Jahr**",
            "title": "Year",
            "type": "integer"
          }
        },
        "required": [
          "year",
          "co2_intensity",
          "energy_intensity",
          "final_energy_intensity",
          "primary_energy_intensity",
          "total_emissions",
          "total_consumption",
          "total_energy_generated",
          "self_supply_rate",
          "scope_1_emissions",
          "scope_2_emissions",
          "scope_3_emissions"
        ],
        "title": "AnalysisResultAttributes",
        "type": "object"
      },
      "AnalysisResultData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/AnalysisResultAttributes"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "ANALYSIS_RESULT",
            "default": "ANALYSIS_RESULT",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attributes"
        ],
        "title": "AnalysisResultData",
        "type": "object"
      },
      "AnalysisResultResponse": {
        "properties": {
          "data": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AnalysisResultData"
              },
              {
                "type": "null"
              }
            ]
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "AnalysisResultResponse",
        "type": "object"
      },
      "AnnualConsumptionAttributes": {
        "properties": {
          "category": {
            "$ref": "#/components/schemas/Utility",
            "description": "**Category** \u00b7 **Kategorie**"
          },
          "completeness": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Completeness** \u00b7 **Vollst\u00e4ndigkeit**",
            "title": "Completeness"
          },
          "consumption": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Consumption** \u00b7 **Verbrauch**",
            "title": "Consumption"
          },
          "cooling_system": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CoolingSystem"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Cooling system** \u00b7 **K\u00fchlsystem**"
          },
          "emission_factor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmissionFactorAttributes"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Emission factor** \u00b7 **Emissionsfaktor**"
          },
          "external_meter_id": {
            "description": "**External meter ID** \u00b7 **Externe Z\u00e4hler-ID**",
            "title": "External Meter Id",
            "type": "string"
          },
          "heating_system": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeatingSystem"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Heating system** \u00b7 **Heizsystem**"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Name** \u00b7 **Name**",
            "title": "Name"
          },
          "procured_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProcuredBy"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Procured by** \u00b7 **Beschafft durch**"
          },
          "source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConsumptionSource"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Source** \u00b7 **Quelle**"
          },
          "tenants": {
            "description": "**Tenants** \u00b7 **Mieter**",
            "items": {
              "$ref": "#/components/schemas/TenantSummaryAttributes"
            },
            "title": "Tenants",
            "type": "array"
          },
          "units": {
            "$ref": "#/components/schemas/Units",
            "description": "**Units** \u00b7 **Einheiten**"
          },
          "year": {
            "description": "**Year** \u00b7 **Jahr**",
            "title": "Year",
            "type": "integer"
          }
        },
        "required": [
          "name",
          "year",
          "category",
          "source",
          "procured_by",
          "consumption",
          "units",
          "completeness",
          "heating_system",
          "cooling_system",
          "emission_factor",
          "external_meter_id",
          "tenants"
        ],
        "title": "AnnualConsumptionAttributes",
        "type": "object"
      },
      "AnnualConsumptionData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/AnnualConsumptionAttributes"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "ANNUAL_CONSUMPTION",
            "default": "ANNUAL_CONSUMPTION",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attributes"
        ],
        "title": "AnnualConsumptionData",
        "type": "object"
      },
      "AnnualConsumptionListResponse": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/AnnualConsumptionData"
            },
            "title": "Data",
            "type": "array"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "AnnualConsumptionListResponse",
        "type": "object"
      },
      "AnnualConsumptionMarketBasedEmissionUpdate": {
        "properties": {
          "is_renewable": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Renewable"
          },
          "market_based_emission_factor": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Market Based Emission Factor"
          }
        },
        "title": "AnnualConsumptionMarketBasedEmissionUpdate",
        "type": "object"
      },
      "AnnualConsumptionPatchPayload": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/AnnualConsumptionPatchPayloadData"
          }
        },
        "required": [
          "data"
        ],
        "title": "AnnualConsumptionPatchPayload",
        "type": "object"
      },
      "AnnualConsumptionPatchPayloadData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/AnnualConsumptionMarketBasedEmissionUpdate"
          },
          "type": {
            "const": "ANNUAL_CONSUMPTION",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "attributes"
        ],
        "title": "AnnualConsumptionPatchPayloadData",
        "type": "object"
      },
      "AnnualConsumptionResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/AnnualConsumptionData"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "AnnualConsumptionResponse",
        "type": "object"
      },
      "AuditActor": {
        "enum": [
          "SYSTEM",
          "USER",
          "API_KEY"
        ],
        "title": "AuditActor",
        "type": "string"
      },
      "AuditLogAttributes": {
        "properties": {
          "actor": {
            "$ref": "#/components/schemas/AuditActor"
          },
          "api_key_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Key Id"
          },
          "api_key_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Key Name"
          },
          "entity_id": {
            "title": "Entity Id",
            "type": "integer"
          },
          "op": {
            "$ref": "#/components/schemas/AuditOperation"
          },
          "origin": {
            "$ref": "#/components/schemas/RecordOrigin"
          },
          "record": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Record"
          },
          "record_diff": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Record Diff"
          },
          "table_name": {
            "title": "Table Name",
            "type": "string"
          },
          "table_schema": {
            "title": "Table Schema",
            "type": "string"
          },
          "transaction_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Transaction Id"
          },
          "ts": {
            "format": "date-time",
            "title": "Ts",
            "type": "string"
          },
          "user_data": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Data"
          },
          "user_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Id"
          }
        },
        "required": [
          "op",
          "actor",
          "transaction_id",
          "user_id",
          "user_data",
          "api_key_id",
          "api_key_name",
          "table_schema",
          "table_name",
          "entity_id",
          "record",
          "record_diff",
          "ts",
          "origin"
        ],
        "title": "AuditLogAttributes",
        "type": "object"
      },
      "AuditLogData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/AuditLogAttributes"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "AUDIT_LOG",
            "default": "AUDIT_LOG",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attributes"
        ],
        "title": "AuditLogData",
        "type": "object"
      },
      "AuditLogListResponse": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/AuditLogData"
            },
            "title": "Data",
            "type": "array"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "AuditLogListResponse",
        "type": "object"
      },
      "AuditOperation": {
        "enum": [
          "INSERT",
          "UPDATE",
          "DELETE"
        ],
        "title": "AuditOperation",
        "type": "string"
      },
      "BREEAMLevel": {
        "enum": [
          "OUTSTANDING",
          "EXCELLENT",
          "VERY_GOOD",
          "GOOD",
          "PASS",
          "UNCLASSIFIED"
        ],
        "title": "BREEAMLevel",
        "type": "string"
      },
      "BaseDataSchema": {
        "properties": {
          "attributes": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Attributes"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "$ref": "#/components/schemas/ResourceType"
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "BaseDataSchema",
        "type": "object"
      },
      "Body_upload_file_files__post": {
        "properties": {
          "file": {
            "contentMediaType": "application/octet-stream",
            "title": "File",
            "type": "string"
          }
        },
        "required": [
          "file"
        ],
        "title": "Body_upload_file_files__post",
        "type": "object"
      },
      "BuildingAttributes": {
        "properties": {
          "building_certificates": {
            "description": "**Building certificates** \u00b7 **Geb\u00e4udezertifikate**\n\nList of building certificates for the building, excluded if not explicitly requested.\n\nListe der Geb\u00e4udezertifikate des Geb\u00e4udes; nur enthalten, wenn ausdr\u00fccklich angefordert.",
            "items": {
              "$ref": "#/components/schemas/BuildingCertificateRead"
            },
            "title": "Building Certificates",
            "type": "array"
          },
          "building_specification": {
            "$ref": "#/components/schemas/BuildingSpecification",
            "description": "**Building specification** \u00b7 **Geb\u00e4udespezifikation**"
          },
          "energy_certificates": {
            "description": "**Energy certificates** \u00b7 **Energieausweise**\n\nList of energy certificates for the building, excluded if not explicitly requested.\n\nListe der Energieausweise des Geb\u00e4udes; nur enthalten, wenn ausdr\u00fccklich angefordert.",
            "items": {
              "$ref": "#/components/schemas/EnergyCertificateRead"
            },
            "title": "Energy Certificates",
            "type": "array"
          },
          "external_asset_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**External asset ID** \u00b7 **Externe Asset-ID**",
            "title": "External Asset Id"
          },
          "external_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**External ID** \u00b7 **Externe ID**",
            "title": "External Id"
          },
          "name": {
            "description": "**Name** \u00b7 **Name**",
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name",
          "external_id",
          "external_asset_id",
          "building_specification"
        ],
        "title": "BuildingAttributes",
        "type": "object"
      },
      "BuildingCertificateLevelRead": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BREEAMLevel"
              },
              {
                "$ref": "#/components/schemas/DGNBFullLevel"
              },
              {
                "$ref": "#/components/schemas/DGNBWithoutBronzeLevel"
              },
              {
                "$ref": "#/components/schemas/FitwelLevel"
              },
              {
                "$ref": "#/components/schemas/LEEDLevel"
              },
              {
                "$ref": "#/components/schemas/WELLHealthSafetyRatingLevel"
              },
              {
                "$ref": "#/components/schemas/WiredScoreLevel"
              }
            ],
            "title": "Id"
          },
          "label": {
            "title": "Label",
            "type": "string"
          }
        },
        "required": [
          "id",
          "label"
        ],
        "title": "BuildingCertificateLevelRead",
        "type": "object"
      },
      "BuildingCertificateRead": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "issued_at": {
            "format": "date",
            "title": "Issued At",
            "type": "string"
          },
          "level": {
            "$ref": "#/components/schemas/BuildingCertificateLevelRead"
          },
          "schema": {
            "$ref": "#/components/schemas/BuildingCertificateSchemaRead"
          },
          "valid_until": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Valid Until"
          }
        },
        "required": [
          "level",
          "schema",
          "issued_at",
          "description",
          "valid_until"
        ],
        "title": "BuildingCertificateRead",
        "type": "object"
      },
      "BuildingCertificateSchema": {
        "enum": [
          "BREEAM_COMMUNITIES",
          "BREEAM_INFRASTRUCTURE",
          "BREEAM_NEW_CONSTRUCTION",
          "BREEAM_IN_USE",
          "BREEAM_REFURBISHMENT",
          "DGNB_EXISTING_BUILDINGS",
          "DGNB_BUILDINGS_IN_USE",
          "DGNB_NEW_CONSTRUCTION",
          "DGNB_RENOVATION",
          "FITWEL",
          "LEED_BDC_CSD_C",
          "LEED_BDC_CSD_PC",
          "LEED_BDC_NC_C",
          "LEED_BDC_NC_PC",
          "LEED_IDC_CI_C",
          "LEED_IDC_CI_PC",
          "LEED_OM_EB_C",
          "WELL_HEALTH_SAFETY_RATING",
          "WIRED_SCORE_OCCUPIED_BUILDINGS",
          "WIRED_SCORE_DEVELOPMENTS"
        ],
        "title": "BuildingCertificateSchema",
        "type": "string"
      },
      "BuildingCertificateSchemaRead": {
        "properties": {
          "id": {
            "$ref": "#/components/schemas/BuildingCertificateSchema"
          },
          "label": {
            "title": "Label",
            "type": "string"
          }
        },
        "required": [
          "id",
          "label"
        ],
        "title": "BuildingCertificateSchemaRead",
        "type": "object"
      },
      "BuildingData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/BuildingAttributes"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "BUILDING",
            "default": "BUILDING",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attributes"
        ],
        "title": "BuildingData",
        "type": "object"
      },
      "BuildingListResponse": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/BuildingData"
            },
            "title": "Data",
            "type": "array"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "BuildingListResponse",
        "type": "object"
      },
      "BuildingSpecification": {
        "properties": {
          "gross_external_area": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Gross external area** \u00b7 **Brutto-Au\u00dfenfl\u00e4che**",
            "title": "Gross External Area"
          },
          "gross_internal_area": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Gross internal area** \u00b7 **Brutto-Innenfl\u00e4che**",
            "title": "Gross Internal Area"
          }
        },
        "required": [
          "gross_external_area",
          "gross_internal_area"
        ],
        "title": "BuildingSpecification",
        "type": "object"
      },
      "BulkConsumptionIntervalData": {
        "properties": {
          "created": {
            "items": {
              "$ref": "#/components/schemas/ProcessedConsumptionInterval"
            },
            "title": "Created",
            "type": "array"
          },
          "type": {
            "const": "CONSUMPTION_INTERVAL",
            "default": "CONSUMPTION_INTERVAL",
            "title": "Type",
            "type": "string"
          },
          "updated": {
            "items": {
              "$ref": "#/components/schemas/ProcessedConsumptionInterval"
            },
            "title": "Updated",
            "type": "array"
          }
        },
        "required": [
          "created",
          "updated"
        ],
        "title": "BulkConsumptionIntervalData",
        "type": "object"
      },
      "BulkConsumptionIntervalPayload": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/ConsumptionIntervalPayloadData"
            },
            "title": "Data",
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "title": "BulkConsumptionIntervalPayload",
        "type": "object"
      },
      "BulkConsumptionIntervalResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/BulkConsumptionIntervalData"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "BulkConsumptionIntervalResponse",
        "type": "object"
      },
      "BulkPartialConsumptionIntervalData": {
        "properties": {
          "created": {
            "items": {
              "$ref": "#/components/schemas/ProcessedConsumptionInterval"
            },
            "title": "Created",
            "type": "array"
          },
          "errors": {
            "items": {
              "$ref": "#/components/schemas/alasco__ivy__public__api__utilities__consumption_intervals__BulkError"
            },
            "title": "Errors",
            "type": "array"
          },
          "type": {
            "const": "CONSUMPTION_INTERVAL",
            "default": "CONSUMPTION_INTERVAL",
            "title": "Type",
            "type": "string"
          },
          "updated": {
            "items": {
              "$ref": "#/components/schemas/ProcessedConsumptionInterval"
            },
            "title": "Updated",
            "type": "array"
          }
        },
        "required": [
          "created",
          "updated",
          "errors"
        ],
        "title": "BulkPartialConsumptionIntervalData",
        "type": "object"
      },
      "BulkPartialConsumptionIntervalResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/BulkPartialConsumptionIntervalData"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "BulkPartialConsumptionIntervalResponse",
        "type": "object"
      },
      "BulkPartialUtilityMeterImportData": {
        "properties": {
          "created": {
            "items": {
              "$ref": "#/components/schemas/UtilityMeterImportData"
            },
            "title": "Created",
            "type": "array"
          },
          "errors": {
            "items": {
              "$ref": "#/components/schemas/alasco__ivy__public__api__utilities__utility_meter_imports__BulkError"
            },
            "title": "Errors",
            "type": "array"
          },
          "type": {
            "const": "UTILITY_METER_IMPORT",
            "default": "UTILITY_METER_IMPORT",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "created",
          "errors"
        ],
        "title": "BulkPartialUtilityMeterImportData",
        "type": "object"
      },
      "BulkPartialUtilityMeterImportResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/BulkPartialUtilityMeterImportData"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "BulkPartialUtilityMeterImportResponse",
        "type": "object"
      },
      "BulkUtilityMeterReadingData": {
        "properties": {
          "created": {
            "items": {
              "$ref": "#/components/schemas/ProcessedUtilityMeterReading"
            },
            "title": "Created",
            "type": "array"
          },
          "type": {
            "const": "UTILITY_METER_READING",
            "default": "UTILITY_METER_READING",
            "title": "Type",
            "type": "string"
          },
          "updated": {
            "items": {
              "$ref": "#/components/schemas/ProcessedUtilityMeterReading"
            },
            "title": "Updated",
            "type": "array"
          }
        },
        "required": [
          "created",
          "updated"
        ],
        "title": "BulkUtilityMeterReadingData",
        "type": "object"
      },
      "BulkUtilityMeterReadingPayload": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/UtilityMeterReadingWithExternalIdPayloadData"
            },
            "title": "Data",
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "title": "BulkUtilityMeterReadingPayload",
        "type": "object"
      },
      "BulkUtilityMeterReadingResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/BulkUtilityMeterReadingData"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "BulkUtilityMeterReadingResponse",
        "type": "object"
      },
      "ConsumptionIntervalAttributes": {
        "properties": {
          "consumption_value": {
            "description": "**Consumption value** \u00b7 **Verbrauchswert**",
            "title": "Consumption Value",
            "type": "string"
          },
          "end_date": {
            "description": "**End date** \u00b7 **Enddatum**",
            "format": "date",
            "title": "End Date",
            "type": "string"
          },
          "start_date": {
            "description": "**Start date** \u00b7 **Startdatum**",
            "format": "date",
            "title": "Start Date",
            "type": "string"
          }
        },
        "required": [
          "start_date",
          "end_date",
          "consumption_value"
        ],
        "title": "ConsumptionIntervalAttributes",
        "type": "object"
      },
      "ConsumptionIntervalCreateErrorCode": {
        "enum": [
          "ALA-4001",
          "ALA-4002",
          "ALA-4003",
          "ALA-4004",
          "ALA-4005",
          "ALA-4006",
          "ALA-4007",
          "ALA-4008"
        ],
        "title": "ConsumptionIntervalCreateErrorCode",
        "type": "string"
      },
      "ConsumptionIntervalData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/ConsumptionIntervalAttributes"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "CONSUMPTION_INTERVAL",
            "default": "CONSUMPTION_INTERVAL",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attributes"
        ],
        "title": "ConsumptionIntervalData",
        "type": "object"
      },
      "ConsumptionIntervalPayload": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ConsumptionIntervalPayloadData"
          }
        },
        "required": [
          "data"
        ],
        "title": "ConsumptionIntervalPayload",
        "type": "object"
      },
      "ConsumptionIntervalPayloadData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/ConsumptionIntervalWrite-Input"
          },
          "type": {
            "const": "CONSUMPTION_INTERVAL",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "attributes"
        ],
        "title": "ConsumptionIntervalPayloadData",
        "type": "object"
      },
      "ConsumptionIntervalResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ConsumptionIntervalData"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "ConsumptionIntervalResponse",
        "type": "object"
      },
      "ConsumptionIntervalWrite-Input": {
        "properties": {
          "batch_info_uuid": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The UUID of the utility data batch info this consumption interval should be associated with.",
            "title": "Batch Info Uuid"
          },
          "consumption_value": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Consumption Value"
          },
          "end_date": {
            "format": "date",
            "title": "End Date",
            "type": "string"
          },
          "external_meter_id": {
            "description": "The external_id of the utility meter this consumption interval belongs to.",
            "examples": [
              "123XYZ"
            ],
            "maxLength": 255,
            "title": "External Meter Id",
            "type": "string"
          },
          "start_date": {
            "format": "date",
            "title": "Start Date",
            "type": "string"
          }
        },
        "required": [
          "external_meter_id",
          "start_date",
          "end_date",
          "consumption_value"
        ],
        "title": "ConsumptionIntervalWrite",
        "type": "object"
      },
      "ConsumptionIntervalWrite-Output": {
        "properties": {
          "batch_info_uuid": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The UUID of the utility data batch info this consumption interval should be associated with.",
            "title": "Batch Info Uuid"
          },
          "consumption_value": {
            "title": "Consumption Value",
            "type": "string"
          },
          "end_date": {
            "format": "date",
            "title": "End Date",
            "type": "string"
          },
          "external_meter_id": {
            "description": "The external_id of the utility meter this consumption interval belongs to.",
            "examples": [
              "123XYZ"
            ],
            "maxLength": 255,
            "title": "External Meter Id",
            "type": "string"
          },
          "start_date": {
            "format": "date",
            "title": "Start Date",
            "type": "string"
          }
        },
        "required": [
          "external_meter_id",
          "start_date",
          "end_date",
          "consumption_value"
        ],
        "title": "ConsumptionIntervalWrite",
        "type": "object"
      },
      "ConsumptionSource": {
        "enum": [
          "meter",
          "estimate",
          "manualEntry"
        ],
        "title": "ConsumptionSource",
        "type": "string"
      },
      "CoolingSystem": {
        "enum": [
          "DISTRICT",
          "LOCAL_DISTRICT"
        ],
        "title": "CoolingSystem",
        "type": "string"
      },
      "CustomDataFieldAttributes": {
        "properties": {
          "field_id": {
            "description": "**Field ID** \u00b7 **Feld-ID**",
            "format": "uuid",
            "title": "Field Id",
            "type": "string"
          },
          "name": {
            "description": "**Name** \u00b7 **Name**",
            "title": "Name",
            "type": "string"
          },
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Value** \u00b7 **Wert**",
            "title": "Value"
          },
          "year": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Year** \u00b7 **Jahr**",
            "title": "Year"
          }
        },
        "required": [
          "name",
          "field_id",
          "year",
          "value"
        ],
        "title": "CustomDataFieldAttributes",
        "type": "object"
      },
      "CustomDataGroupAttributes": {
        "properties": {
          "field_instances": {
            "description": "**Field instances** \u00b7 **Feldinstanzen**",
            "items": {
              "$ref": "#/components/schemas/CustomDataFieldAttributes"
            },
            "title": "Field Instances",
            "type": "array"
          },
          "name": {
            "description": "**Name** \u00b7 **Name**",
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name",
          "field_instances"
        ],
        "title": "CustomDataGroupAttributes",
        "type": "object"
      },
      "CustomDataGroupData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/CustomDataGroupAttributes"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "CUSTOM_DATA_GROUP_INSTANCE",
            "default": "CUSTOM_DATA_GROUP_INSTANCE",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attributes"
        ],
        "title": "CustomDataGroupData",
        "type": "object"
      },
      "CustomDataListResponse": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/CustomDataGroupData"
            },
            "title": "Data",
            "type": "array"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "CustomDataListResponse",
        "type": "object"
      },
      "DGNBFullLevel": {
        "enum": [
          "PLATINUM",
          "GOLD",
          "SILVER",
          "BRONZE"
        ],
        "title": "DGNBFullLevel",
        "type": "string"
      },
      "DGNBWithoutBronzeLevel": {
        "enum": [
          "PLATINUM",
          "GOLD",
          "SILVER"
        ],
        "title": "DGNBWithoutBronzeLevel",
        "type": "string"
      },
      "DocumentEventAttributes": {
        "properties": {
          "event_type": {
            "$ref": "#/components/schemas/DocumentEventType",
            "description": "**Event type** \u00b7 **Ereignistyp**"
          },
          "record": {
            "$ref": "#/components/schemas/DocumentEventRecord",
            "description": "**Record** \u00b7 **Datensatz**"
          },
          "source": {
            "$ref": "#/components/schemas/DocumentSource",
            "description": "**Source** \u00b7 **Quelle**"
          },
          "timestamp": {
            "description": "**Timestamp** \u00b7 **Zeitstempel**",
            "format": "date-time",
            "title": "Timestamp",
            "type": "string"
          }
        },
        "required": [
          "event_type",
          "timestamp",
          "source",
          "record"
        ],
        "title": "DocumentEventAttributes",
        "type": "object"
      },
      "DocumentEventData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/DocumentEventAttributes"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "DOCUMENT_EVENT",
            "default": "DOCUMENT_EVENT",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attributes"
        ],
        "title": "DocumentEventData",
        "type": "object"
      },
      "DocumentEventRecord": {
        "properties": {
          "building_external_ids": {
            "description": "**Building external IDs** \u00b7 **Externe Geb\u00e4ude-IDs**",
            "items": {
              "type": "string"
            },
            "title": "Building External Ids",
            "type": "array"
          },
          "document_type": {
            "$ref": "#/components/schemas/DocumentType",
            "description": "**Document type** \u00b7 **Dokumenttyp**"
          },
          "external_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**External ID** \u00b7 **Externe ID**",
            "title": "External Id"
          },
          "file_id": {
            "description": "**File ID** \u00b7 **Datei-ID**",
            "format": "uuid",
            "title": "File Id",
            "type": "string"
          },
          "issued_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Issued at** \u00b7 **Ausstellungsdatum**",
            "title": "Issued At"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Name** \u00b7 **Name**",
            "title": "Name"
          },
          "valid_until": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Valid until** \u00b7 **G\u00fcltig bis**",
            "title": "Valid Until"
          }
        },
        "required": [
          "file_id",
          "name",
          "external_id",
          "document_type",
          "building_external_ids",
          "issued_at",
          "valid_until"
        ],
        "title": "DocumentEventRecord",
        "type": "object"
      },
      "DocumentEventType": {
        "enum": [
          "CREATE",
          "UPDATE",
          "DELETE"
        ],
        "title": "DocumentEventType",
        "type": "string"
      },
      "DocumentEventsResponse": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/DocumentEventData"
            },
            "title": "Data",
            "type": "array"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "DocumentEventsResponse",
        "type": "object"
      },
      "DocumentSource": {
        "enum": [
          "APP",
          "API",
          "SURVEY"
        ],
        "title": "DocumentSource",
        "type": "string"
      },
      "DocumentType": {
        "enum": [
          "ENERGY_CERTIFICATE",
          "TAXONOMY_PROOF",
          "BUILDING_CERTIFICATE",
          "UTILITY_BILL",
          "CLIMATE_RISK_ANALYSIS",
          "TENANT_LEASE",
          "WASTE_COLLECTION_INTERVAL",
          "EMISSION_FACTOR_PROOF",
          "WASTE_MANAGEMENT_CONCEPT",
          "WASTE_DOCUMENTATION",
          "WASTE_REPORT",
          "PUBLIC_DISPLAY_ENERGY_CERTIFICATE",
          "RENEWABLE_ELECTRICITY_CERTIFICATE",
          "ESG_ANALYSIS",
          "EU_TAXONOMY_ASSESSMENT",
          "ENERGY_RENOVATION_ROADMAP",
          "ENERGY_AUDIT",
          "INVESTOR_ESG_ANALYSIS",
          "ENERGY_REVIEW",
          "FOSSIL_FUEL_ELECTRICITY_STATEMENT_TENANT",
          "OTHER",
          "UNSET"
        ],
        "title": "DocumentType",
        "type": "string"
      },
      "EmissionFactorAttributes": {
        "properties": {
          "location_based": {
            "description": "**Location-based** \u00b7 **Standortbasiert**",
            "title": "Location Based",
            "type": "string"
          },
          "market_based": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MarketBasedFactorAttributes"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Market-based** \u00b7 **Marktbasiert**"
          }
        },
        "required": [
          "location_based",
          "market_based"
        ],
        "title": "EmissionFactorAttributes",
        "type": "object"
      },
      "EnergyCertificateRead": {
        "properties": {
          "co2_emissions": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Co2 Emissions"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "efficiency_class": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Efficiency Class"
          },
          "end_energy_electricity": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "End Energy Electricity"
          },
          "end_energy_heating": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "End Energy Heating"
          },
          "is_residential": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Residential"
          },
          "issued_at": {
            "format": "date",
            "title": "Issued At",
            "type": "string"
          },
          "primary_energy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Primary Energy"
          },
          "primary_energy_non_renewable": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Primary Energy Non Renewable"
          },
          "type": {
            "$ref": "#/components/schemas/EnergyCertificateType"
          },
          "valid_until": {
            "format": "date",
            "title": "Valid Until",
            "type": "string"
          }
        },
        "required": [
          "type",
          "is_residential",
          "efficiency_class",
          "description",
          "end_energy_heating",
          "end_energy_electricity",
          "primary_energy",
          "primary_energy_non_renewable",
          "co2_emissions",
          "issued_at",
          "valid_until"
        ],
        "title": "EnergyCertificateRead",
        "type": "object"
      },
      "EnergyCertificateType": {
        "enum": [
          "CONSUMPTION",
          "DEMAND"
        ],
        "title": "EnergyCertificateType",
        "type": "string"
      },
      "Error": {
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Code"
          },
          "detail": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Detail"
          },
          "source": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          }
        },
        "title": "Error",
        "type": "object"
      },
      "ExternalIdAttributes": {
        "properties": {
          "external_id": {
            "description": "**External ID** \u00b7 **Externe ID**",
            "title": "External Id",
            "type": "string"
          },
          "file_id": {
            "description": "**File ID** \u00b7 **Datei-ID**",
            "format": "uuid",
            "title": "File Id",
            "type": "string"
          }
        },
        "required": [
          "file_id",
          "external_id"
        ],
        "title": "ExternalIdAttributes",
        "type": "object"
      },
      "ExternalIdData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/ExternalIdAttributes"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "FILE_EXTERNAL_ID",
            "default": "FILE_EXTERNAL_ID",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attributes"
        ],
        "title": "ExternalIdData",
        "type": "object"
      },
      "ExternalIdRequest": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ExternalIdRequestData"
          }
        },
        "required": [
          "data"
        ],
        "title": "ExternalIdRequest",
        "type": "object"
      },
      "ExternalIdRequestAttributes": {
        "properties": {
          "external_id": {
            "description": "**External ID** \u00b7 **Externe ID**",
            "title": "External Id",
            "type": "string"
          }
        },
        "required": [
          "external_id"
        ],
        "title": "ExternalIdRequestAttributes",
        "type": "object"
      },
      "ExternalIdRequestData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/ExternalIdRequestAttributes"
          },
          "type": {
            "const": "FILE_EXTERNAL_ID",
            "default": "FILE_EXTERNAL_ID",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "attributes"
        ],
        "title": "ExternalIdRequestData",
        "type": "object"
      },
      "ExternalIdResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ExternalIdData"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "ExternalIdResponse",
        "type": "object"
      },
      "FileGetAttributes": {
        "properties": {
          "building_external_ids": {
            "description": "**Building external IDs** \u00b7 **Externe Geb\u00e4ude-IDs**",
            "items": {
              "type": "string"
            },
            "title": "Building External Ids",
            "type": "array"
          },
          "document_type": {
            "$ref": "#/components/schemas/DocumentType",
            "description": "**Document type** \u00b7 **Dokumenttyp**"
          },
          "download_url": {
            "description": "**Download URL** \u00b7 **Download-URL**",
            "title": "Download Url",
            "type": "string"
          },
          "external_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**External ID** \u00b7 **Externe ID**",
            "title": "External Id"
          },
          "file_id": {
            "description": "**File ID** \u00b7 **Datei-ID**",
            "format": "uuid",
            "title": "File Id",
            "type": "string"
          },
          "issued_at": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Issued at** \u00b7 **Ausstellungsdatum**",
            "title": "Issued At"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Name** \u00b7 **Name**",
            "title": "Name"
          },
          "source": {
            "$ref": "#/components/schemas/DocumentSource",
            "description": "**Source** \u00b7 **Quelle**"
          },
          "valid_until": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Valid until** \u00b7 **G\u00fcltig bis**",
            "title": "Valid Until"
          }
        },
        "required": [
          "name",
          "external_id",
          "source",
          "file_id",
          "building_external_ids",
          "document_type",
          "issued_at",
          "valid_until",
          "download_url"
        ],
        "title": "FileGetAttributes",
        "type": "object"
      },
      "FileGetData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/FileGetAttributes"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "FILE",
            "default": "FILE",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attributes"
        ],
        "title": "FileGetData",
        "type": "object"
      },
      "FileGetResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/FileGetData"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "FileGetResponse",
        "type": "object"
      },
      "FileMetadataAttributes": {
        "properties": {
          "building_external_ids": {
            "description": "**Building external IDs** \u00b7 **Externe Geb\u00e4ude-IDs**",
            "items": {
              "type": "string"
            },
            "title": "Building External Ids",
            "type": "array"
          },
          "document_type": {
            "$ref": "#/components/schemas/DocumentType",
            "description": "**Document type** \u00b7 **Dokumenttyp**"
          },
          "external_id": {
            "description": "**External ID** \u00b7 **Externe ID**",
            "title": "External Id",
            "type": "string"
          },
          "file_id": {
            "description": "**File ID** \u00b7 **Datei-ID**",
            "format": "uuid",
            "title": "File Id",
            "type": "string"
          },
          "issued_at": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Issued at** \u00b7 **Ausstellungsdatum**",
            "title": "Issued At"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Name** \u00b7 **Name**",
            "title": "Name"
          },
          "source": {
            "$ref": "#/components/schemas/DocumentSource",
            "description": "**Source** \u00b7 **Quelle**"
          },
          "valid_until": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Valid until** \u00b7 **G\u00fcltig bis**",
            "title": "Valid Until"
          }
        },
        "required": [
          "name",
          "external_id",
          "source",
          "file_id",
          "building_external_ids",
          "document_type",
          "issued_at",
          "valid_until"
        ],
        "title": "FileMetadataAttributes",
        "type": "object"
      },
      "FileMetadataData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/FileMetadataAttributes"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "FILE_METADATA",
            "default": "FILE_METADATA",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attributes"
        ],
        "title": "FileMetadataData",
        "type": "object"
      },
      "FileMetadataResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/FileMetadataData"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "FileMetadataResponse",
        "type": "object"
      },
      "FileMetadataUpdateAttributes": {
        "properties": {
          "building_external_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Building external ID** \u00b7 **Externe Geb\u00e4ude-ID**",
            "title": "Building External Id"
          },
          "document_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DocumentType"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Document type** \u00b7 **Dokumenttyp**"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Name** \u00b7 **Name**",
            "title": "Name"
          }
        },
        "title": "FileMetadataUpdateAttributes",
        "type": "object"
      },
      "FileMetadataUpdateData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/FileMetadataUpdateAttributes"
          },
          "type": {
            "const": "FILE_METADATA",
            "default": "FILE_METADATA",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "attributes"
        ],
        "title": "FileMetadataUpdateData",
        "type": "object"
      },
      "FileMetadataUpdateRequest": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/FileMetadataUpdateData"
          }
        },
        "required": [
          "data"
        ],
        "title": "FileMetadataUpdateRequest",
        "type": "object"
      },
      "FileUploadData": {
        "properties": {
          "attributes": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Attributes"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "FILE",
            "default": "FILE",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "title": "FileUploadData",
        "type": "object"
      },
      "FileUploadResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/FileUploadData"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "FileUploadResponse",
        "type": "object"
      },
      "FitwelLevel": {
        "enum": [
          "ONE_STAR",
          "TWO_STAR",
          "THREE_STAR"
        ],
        "title": "FitwelLevel",
        "type": "string"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "title": "Detail",
            "type": "array"
          }
        },
        "title": "HTTPValidationError",
        "type": "object"
      },
      "HeatingSystem": {
        "enum": [
          "ELECTRICITY",
          "OIL",
          "GAS",
          "DISTRICT_HEATING",
          "WOOD_CHIPS",
          "WOOD_PELLETS",
          "HEAT_PUMP",
          "UNKNOWN"
        ],
        "title": "HeatingSystem",
        "type": "string"
      },
      "LEEDLevel": {
        "enum": [
          "PLATINUM",
          "GOLD",
          "SILVER",
          "CERTIFIED"
        ],
        "title": "LEEDLevel",
        "type": "string"
      },
      "Links": {
        "properties": {
          "next": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next"
          },
          "prev": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prev"
          }
        },
        "required": [
          "next",
          "prev"
        ],
        "title": "Links",
        "type": "object"
      },
      "MarketBasedFactorAttributes": {
        "properties": {
          "is_renewable": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Is renewable** \u00b7 **Erneuerbar**",
            "title": "Is Renewable"
          },
          "value": {
            "description": "**Value** \u00b7 **Wert**",
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "value",
          "is_renewable"
        ],
        "title": "MarketBasedFactorAttributes",
        "type": "object"
      },
      "ProcessedConsumptionInterval": {
        "properties": {
          "external_meter_id": {
            "title": "External Meter Id",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          }
        },
        "required": [
          "external_meter_id",
          "id"
        ],
        "title": "ProcessedConsumptionInterval",
        "type": "object"
      },
      "ProcessedUtilityMeterReading": {
        "properties": {
          "external_meter_id": {
            "title": "External Meter Id",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          }
        },
        "required": [
          "id",
          "external_meter_id"
        ],
        "title": "ProcessedUtilityMeterReading",
        "type": "object"
      },
      "ProcuredBy": {
        "enum": [
          "LANDLORD",
          "TENANT"
        ],
        "title": "ProcuredBy",
        "type": "string"
      },
      "RecordOrigin": {
        "enum": [
          "LEGACY",
          "APP_USER",
          "PUBLIC_API",
          "INTERNAL_PROCESS",
          "MCP",
          "ASSISTANT"
        ],
        "title": "RecordOrigin",
        "type": "string"
      },
      "ResourceType": {
        "enum": [
          "BUILDING",
          "UTILITY_METER",
          "UTILITY_METER_IMPORT",
          "UTILITY_METER_READING",
          "CONSUMPTION_INTERVAL",
          "UTILITY_DATA_BATCH_INFO",
          "AUDIT_LOG",
          "USER_AUDIT_LOG",
          "DOCUMENT_EVENT",
          "FILE",
          "FILE_EXTERNAL_ID",
          "FILE_METADATA",
          "ANALYSIS_RESULT",
          "TENANT",
          "TENANT_ATTACHMENT",
          "CUSTOM_DATA_GROUP_INSTANCE",
          "ANNUAL_CONSUMPTION",
          "TENANT_CONSUMPTION_LINK",
          "WASTE_COLLECTION",
          "WASTE_PERIOD"
        ],
        "title": "ResourceType",
        "type": "string"
      },
      "Salutation": {
        "enum": [
          "MALE",
          "FEMALE",
          "FAMILY",
          "NONBINARY"
        ],
        "title": "Salutation",
        "type": "string"
      },
      "SubCategory": {
        "enum": [
          "COLD_WATER",
          "HOT_WATER"
        ],
        "title": "SubCategory",
        "type": "string"
      },
      "TenantAttachmentAttributes": {
        "properties": {
          "attachment_type": {
            "$ref": "#/components/schemas/TenantAttachmentType",
            "description": "**Attachment type** \u00b7 **Anhangstyp**"
          },
          "comment": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Comment** \u00b7 **Kommentar**",
            "title": "Comment"
          },
          "file_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**File ID** \u00b7 **Datei-ID**",
            "title": "File Id"
          }
        },
        "required": [
          "attachment_type"
        ],
        "title": "TenantAttachmentAttributes",
        "type": "object"
      },
      "TenantAttachmentCreatePayloadData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/TenantAttachmentWrite"
          },
          "type": {
            "const": "TENANT_ATTACHMENT",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "attributes"
        ],
        "title": "TenantAttachmentCreatePayloadData",
        "type": "object"
      },
      "TenantAttachmentData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/TenantAttachmentAttributes"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "TENANT_ATTACHMENT",
            "default": "TENANT_ATTACHMENT",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attributes"
        ],
        "title": "TenantAttachmentData",
        "type": "object"
      },
      "TenantAttachmentPayload": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/TenantAttachmentCreatePayloadData"
          }
        },
        "required": [
          "data"
        ],
        "title": "TenantAttachmentPayload",
        "type": "object"
      },
      "TenantAttachmentResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/TenantAttachmentData"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "TenantAttachmentResponse",
        "type": "object"
      },
      "TenantAttachmentType": {
        "enum": [
          "COMMENT",
          "DOCUMENT"
        ],
        "title": "TenantAttachmentType",
        "type": "string"
      },
      "TenantAttachmentWrite": {
        "properties": {
          "attachment_type": {
            "$ref": "#/components/schemas/TenantAttachmentType"
          },
          "comment": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Comment"
          },
          "file_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Id"
          }
        },
        "required": [
          "attachment_type"
        ],
        "title": "TenantAttachmentWrite",
        "type": "object"
      },
      "TenantAttributes": {
        "properties": {
          "contact_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Contact email** \u00b7 **E-Mail**",
            "title": "Contact Email"
          },
          "contact_first_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Contact first name** \u00b7 **Vorname**",
            "title": "Contact First Name"
          },
          "contact_last_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Contact last name** \u00b7 **Nachname**",
            "title": "Contact Last Name"
          },
          "contact_phone_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Contact phone number** \u00b7 **Telefonnummer**",
            "title": "Contact Phone Number"
          },
          "contact_salutation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Salutation"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Contact salutation** \u00b7 **Anrede**"
          },
          "contact_title": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Title"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Contact title** \u00b7 **Titel**"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Description** \u00b7 **Beschreibung**",
            "title": "Description"
          },
          "external_id": {
            "description": "**External tenant ID** \u00b7 **Externe Mieter-ID**",
            "title": "External Id",
            "type": "string"
          },
          "green_signature_date": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Green lease signature date** \u00b7 **Datum der Green-Lease-Unterzeichnung**",
            "title": "Green Signature Date"
          },
          "lease_area_square_meters": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Lease area (m\u00b2)** \u00b7 **Mietfl\u00e4che (m\u00b2)**",
            "title": "Lease Area Square Meters"
          },
          "lease_end_date": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Lease end date** \u00b7 **Mietende**",
            "title": "Lease End Date"
          },
          "lease_start_date": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Lease start date** \u00b7 **Mietbeginn**",
            "title": "Lease Start Date"
          },
          "name": {
            "description": "**Name** \u00b7 **Name**",
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name",
          "external_id",
          "description",
          "lease_start_date",
          "lease_end_date",
          "lease_area_square_meters",
          "green_signature_date",
          "contact_title",
          "contact_salutation",
          "contact_email",
          "contact_first_name",
          "contact_last_name",
          "contact_phone_number"
        ],
        "title": "TenantAttributes",
        "type": "object"
      },
      "TenantConsumptionLinkAttributes": {
        "properties": {
          "annual_consumption_id": {
            "description": "**Annual consumption ID** \u00b7 **Jahresverbrauch-ID**",
            "format": "uuid",
            "title": "Annual Consumption Id",
            "type": "string"
          },
          "external_tenant_id": {
            "description": "**External tenant ID** \u00b7 **Externe Mieter-ID**",
            "title": "External Tenant Id",
            "type": "string"
          }
        },
        "required": [
          "external_tenant_id",
          "annual_consumption_id"
        ],
        "title": "TenantConsumptionLinkAttributes",
        "type": "object"
      },
      "TenantConsumptionLinkCreatePayloadData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/TenantConsumptionLinkWrite"
          },
          "type": {
            "const": "TENANT_CONSUMPTION_LINK",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "attributes"
        ],
        "title": "TenantConsumptionLinkCreatePayloadData",
        "type": "object"
      },
      "TenantConsumptionLinkData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/TenantConsumptionLinkAttributes"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "TENANT_CONSUMPTION_LINK",
            "default": "TENANT_CONSUMPTION_LINK",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attributes"
        ],
        "title": "TenantConsumptionLinkData",
        "type": "object"
      },
      "TenantConsumptionLinkPayload": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/TenantConsumptionLinkCreatePayloadData"
          }
        },
        "required": [
          "data"
        ],
        "title": "TenantConsumptionLinkPayload",
        "type": "object"
      },
      "TenantConsumptionLinkResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/TenantConsumptionLinkData"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "TenantConsumptionLinkResponse",
        "type": "object"
      },
      "TenantConsumptionLinkWrite": {
        "properties": {
          "annual_consumption_id": {
            "format": "uuid",
            "title": "Annual Consumption Id",
            "type": "string"
          },
          "external_tenant_id": {
            "title": "External Tenant Id",
            "type": "string"
          }
        },
        "required": [
          "external_tenant_id",
          "annual_consumption_id"
        ],
        "title": "TenantConsumptionLinkWrite",
        "type": "object"
      },
      "TenantCreatePayloadData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/TenantWrite"
          },
          "type": {
            "const": "TENANT",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "attributes"
        ],
        "title": "TenantCreatePayloadData",
        "type": "object"
      },
      "TenantData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/TenantAttributes"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "TENANT",
            "default": "TENANT",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attributes"
        ],
        "title": "TenantData",
        "type": "object"
      },
      "TenantPayload": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/TenantCreatePayloadData"
          }
        },
        "required": [
          "data"
        ],
        "title": "TenantPayload",
        "type": "object"
      },
      "TenantResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/TenantData"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "TenantResponse",
        "type": "object"
      },
      "TenantSummaryAttributes": {
        "properties": {
          "external_id": {
            "description": "**External tenant ID** \u00b7 **Externe Mieter-ID**",
            "title": "External Id",
            "type": "string"
          },
          "name": {
            "description": "**Name** \u00b7 **Name**",
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "external_id",
          "name"
        ],
        "title": "TenantSummaryAttributes",
        "type": "object"
      },
      "TenantWrite": {
        "properties": {
          "contact_email": {
            "anyOf": [
              {
                "format": "email",
                "maxLength": 255,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contact Email"
          },
          "contact_first_name": {
            "anyOf": [
              {
                "maxLength": 255,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contact First Name"
          },
          "contact_last_name": {
            "anyOf": [
              {
                "maxLength": 255,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contact Last Name"
          },
          "contact_phone_number": {
            "anyOf": [
              {
                "maxLength": 255,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contact Phone Number"
          },
          "contact_salutation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Salutation"
              },
              {
                "type": "null"
              }
            ]
          },
          "contact_title": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Title"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "maxLength": 255,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "external_building_id": {
            "title": "External Building Id",
            "type": "string"
          },
          "external_id": {
            "maxLength": 255,
            "minLength": 1,
            "title": "External Id",
            "type": "string"
          },
          "green_signature_date": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Green Signature Date"
          },
          "lease_area_square_meters": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lease Area Square Meters"
          },
          "lease_end_date": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lease End Date"
          },
          "lease_start_date": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lease Start Date"
          },
          "name": {
            "maxLength": 255,
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "external_building_id",
          "name",
          "external_id"
        ],
        "title": "TenantWrite",
        "type": "object"
      },
      "Title": {
        "enum": [
          "DR",
          "PROF",
          "PROFDR"
        ],
        "title": "Title",
        "type": "string"
      },
      "Units": {
        "enum": [
          "CUBIC_METERS",
          "KILOWATT_HOURS",
          "MEGAWATT_HOURS",
          "KILOJOULES",
          "MEGAJOULES",
          "GIGAJOULES",
          "BRITISH_THERMAL_UNITS"
        ],
        "title": "Units",
        "type": "string"
      },
      "UserAuditActor": {
        "enum": [
          "SYSTEM",
          "USER",
          "API_KEY"
        ],
        "title": "UserAuditActor",
        "type": "string"
      },
      "UserAuditLogAttributes": {
        "properties": {
          "actor": {
            "$ref": "#/components/schemas/UserAuditActor"
          },
          "api_key_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Key Id"
          },
          "api_key_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Key Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "entity_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Entity Id"
          },
          "event_type": {
            "title": "Event Type",
            "type": "string"
          },
          "new": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "New"
          },
          "old": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Old"
          },
          "op": {
            "$ref": "#/components/schemas/UserAuditOperation"
          },
          "record_diff": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Record Diff"
          },
          "table_name": {
            "title": "Table Name",
            "type": "string"
          },
          "transaction_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Transaction Id"
          },
          "ts": {
            "format": "date-time",
            "title": "Ts",
            "type": "string"
          },
          "user_data": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Data"
          },
          "user_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Id"
          }
        },
        "required": [
          "op",
          "actor",
          "transaction_id",
          "user_id",
          "user_data",
          "api_key_id",
          "api_key_name",
          "table_name",
          "entity_id",
          "old",
          "new",
          "record_diff",
          "ts",
          "description",
          "event_type"
        ],
        "title": "UserAuditLogAttributes",
        "type": "object"
      },
      "UserAuditLogData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/UserAuditLogAttributes"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "USER_AUDIT_LOG",
            "default": "USER_AUDIT_LOG",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attributes"
        ],
        "title": "UserAuditLogData",
        "type": "object"
      },
      "UserAuditLogListResponse": {
        "description": "Cannot use BaseResponseSchema because the ids are ints instead of uuids",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/UserAuditLogData"
            },
            "title": "Data",
            "type": "array"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/UserAuditLogData"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "UserAuditLogListResponse",
        "type": "object"
      },
      "UserAuditOperation": {
        "enum": [
          "INSERT",
          "UPDATE",
          "DELETE",
          "LOGIN",
          "LOGIN_FAILED",
          "LOGOUT",
          "PASSWORD_CHANGE_FAILED",
          "PASSWORD_CHANGE_SUCCEEDED"
        ],
        "title": "UserAuditOperation",
        "type": "string"
      },
      "Utility": {
        "enum": [
          "HEATING",
          "ELECTRICITY",
          "WATER",
          "COOLING"
        ],
        "title": "Utility",
        "type": "string"
      },
      "UtilityDataBatchInfoAttributes": {
        "properties": {
          "data_source_label": {
            "description": "**Data source label** \u00b7 **Datenquelle (Bezeichnung)**",
            "title": "Data Source Label",
            "type": "string"
          },
          "data_source_value": {
            "description": "**Data source value** \u00b7 **Datenquelle (Wert)**",
            "title": "Data Source Value",
            "type": "string"
          },
          "external_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**External ID** \u00b7 **Externe ID**",
            "title": "External Id"
          }
        },
        "required": [
          "external_id",
          "data_source_value",
          "data_source_label"
        ],
        "title": "UtilityDataBatchInfoAttributes",
        "type": "object"
      },
      "UtilityDataBatchInfoData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/UtilityDataBatchInfoAttributes"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "UTILITY_DATA_BATCH_INFO",
            "default": "UTILITY_DATA_BATCH_INFO",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attributes"
        ],
        "title": "UtilityDataBatchInfoData",
        "type": "object"
      },
      "UtilityDataBatchInfoPayload": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/alasco__public_api__esg__web__v1__schemas__utilities__utility_batch_info__UtilityDataBatchInfoWrite"
          }
        },
        "required": [
          "data"
        ],
        "title": "UtilityDataBatchInfoPayload",
        "type": "object"
      },
      "UtilityDataBatchInfoResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/UtilityDataBatchInfoData"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "UtilityDataBatchInfoResponse",
        "type": "object"
      },
      "UtilityMeterAttributes": {
        "properties": {
          "activation_date": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Activation date** \u00b7 **Aktivierungsdatum**",
            "title": "Activation Date"
          },
          "category": {
            "$ref": "#/components/schemas/Utility",
            "description": "**Category** \u00b7 **Kategorie**"
          },
          "cooling_system": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CoolingSystem"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Cooling system** \u00b7 **K\u00fchlsystem**"
          },
          "custom_conversion_factor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Custom conversion factor** \u00b7 **Individueller Umrechnungsfaktor**",
            "title": "Custom Conversion Factor"
          },
          "deactivation_date": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Deactivation date** \u00b7 **Deaktivierungsdatum**",
            "title": "Deactivation Date"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Description** \u00b7 **Beschreibung**",
            "title": "Description"
          },
          "external_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**External ID** \u00b7 **Externe ID**",
            "title": "External Id"
          },
          "heating_system": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeatingSystem"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Heating system** \u00b7 **Heizsystem**"
          },
          "multiplication_factor": {
            "description": "**Multiplication factor** \u00b7 **Multiplikationsfaktor**",
            "title": "Multiplication Factor",
            "type": "string"
          },
          "procured_by": {
            "$ref": "#/components/schemas/ProcuredBy",
            "default": "LANDLORD",
            "description": "**Procured by** \u00b7 **Beschafft durch**"
          },
          "serial": {
            "description": "**Serial number** \u00b7 **Seriennummer**",
            "title": "Serial",
            "type": "string"
          },
          "sub_category": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SubCategory"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Sub-category** \u00b7 **Unterkategorie**"
          },
          "units": {
            "$ref": "#/components/schemas/Units",
            "description": "**Units** \u00b7 **Einheiten**"
          }
        },
        "required": [
          "serial",
          "description",
          "external_id",
          "units",
          "category",
          "sub_category",
          "heating_system",
          "cooling_system",
          "multiplication_factor",
          "custom_conversion_factor",
          "activation_date",
          "deactivation_date"
        ],
        "title": "UtilityMeterAttributes",
        "type": "object"
      },
      "UtilityMeterCreatePayloadData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/UtilityMeterWrite"
          },
          "type": {
            "const": "UTILITY_METER",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "attributes"
        ],
        "title": "UtilityMeterCreatePayloadData",
        "type": "object"
      },
      "UtilityMeterData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/UtilityMeterAttributes"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "UTILITY_METER",
            "default": "UTILITY_METER",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attributes"
        ],
        "title": "UtilityMeterData",
        "type": "object"
      },
      "UtilityMeterImportAttributes": {
        "properties": {
          "address": {
            "description": "**Address** \u00b7 **Adresse**",
            "title": "Address",
            "type": "string"
          },
          "category": {
            "$ref": "#/components/schemas/Utility",
            "description": "**Category** \u00b7 **Kategorie**"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Description** \u00b7 **Beschreibung**",
            "title": "Description"
          },
          "external_id": {
            "description": "**External ID** \u00b7 **Externe ID**",
            "title": "External Id",
            "type": "string"
          },
          "heating_system": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeatingSystem"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Heating system** \u00b7 **Heizsystem**"
          },
          "multiplication_factor": {
            "description": "**Multiplication factor** \u00b7 **Multiplikationsfaktor**",
            "title": "Multiplication Factor",
            "type": "string"
          },
          "serial": {
            "description": "**Serial number** \u00b7 **Seriennummer**",
            "title": "Serial",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/UtilityMeterImportStatus",
            "description": "**Status** \u00b7 **Status**"
          },
          "sub_category": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SubCategory"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Sub-category** \u00b7 **Unterkategorie**"
          },
          "units": {
            "$ref": "#/components/schemas/Units",
            "description": "**Units** \u00b7 **Einheiten**"
          }
        },
        "required": [
          "serial",
          "description",
          "external_id",
          "address",
          "units",
          "category",
          "sub_category",
          "heating_system",
          "multiplication_factor",
          "status"
        ],
        "title": "UtilityMeterImportAttributes",
        "type": "object"
      },
      "UtilityMeterImportBulkPayload": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/UtilityMeterImportCreatePayloadData"
            },
            "title": "Data",
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "title": "UtilityMeterImportBulkPayload",
        "type": "object"
      },
      "UtilityMeterImportCreateErrorCode": {
        "enum": [
          "ALA-4001",
          "ALA-4002",
          "ALA-4003",
          "ALA-4004",
          "ALA-4005",
          "ALA-4006",
          "ALA-4007"
        ],
        "title": "UtilityMeterImportCreateErrorCode",
        "type": "string"
      },
      "UtilityMeterImportCreatePayloadData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/UtilityMeterImportWrite-Input"
          },
          "type": {
            "const": "UTILITY_METER_IMPORT",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "attributes"
        ],
        "title": "UtilityMeterImportCreatePayloadData",
        "type": "object"
      },
      "UtilityMeterImportData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/UtilityMeterImportAttributes"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "UTILITY_METER_IMPORT",
            "default": "UTILITY_METER_IMPORT",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attributes"
        ],
        "title": "UtilityMeterImportData",
        "type": "object"
      },
      "UtilityMeterImportPayload": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/UtilityMeterImportCreatePayloadData"
          }
        },
        "required": [
          "data"
        ],
        "title": "UtilityMeterImportPayload",
        "type": "object"
      },
      "UtilityMeterImportResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/UtilityMeterImportData"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "UtilityMeterImportResponse",
        "type": "object"
      },
      "UtilityMeterImportStatus": {
        "enum": [
          "IMPORTED",
          "ASSIGNED",
          "CREATED",
          "REJECTED"
        ],
        "title": "UtilityMeterImportStatus",
        "type": "string"
      },
      "UtilityMeterImportWrite-Input": {
        "properties": {
          "address": {
            "title": "Address",
            "type": "string"
          },
          "category": {
            "$ref": "#/components/schemas/Utility"
          },
          "cooling_system": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CoolingSystem"
              },
              {
                "type": "null"
              }
            ],
            "description": "\n        Required if category = 'COOLING'.\n        "
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "external_id": {
            "title": "External Id",
            "type": "string"
          },
          "heating_system": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeatingSystem"
              },
              {
                "type": "null"
              }
            ],
            "description": "\n        Required if category = 'HEATING'.\n        "
          },
          "meter_id": {
            "title": "Meter Id",
            "type": "string"
          },
          "multiplication_factor": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "default": "1",
            "title": "Multiplication Factor"
          },
          "sub_category": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SubCategory"
              },
              {
                "type": "null"
              }
            ],
            "description": "\n        Required if category = 'WATER'.\n        "
          },
          "units": {
            "$ref": "#/components/schemas/Units",
            "description": "\n        If category = 'WATER', then units must only be 'CUBIC_METERS'.\n        "
          }
        },
        "required": [
          "address",
          "meter_id",
          "units",
          "category",
          "external_id"
        ],
        "title": "UtilityMeterImportWrite",
        "type": "object"
      },
      "UtilityMeterImportWrite-Output": {
        "properties": {
          "address": {
            "title": "Address",
            "type": "string"
          },
          "category": {
            "$ref": "#/components/schemas/Utility"
          },
          "cooling_system": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CoolingSystem"
              },
              {
                "type": "null"
              }
            ],
            "description": "\n        Required if category = 'COOLING'.\n        "
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "external_id": {
            "title": "External Id",
            "type": "string"
          },
          "heating_system": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeatingSystem"
              },
              {
                "type": "null"
              }
            ],
            "description": "\n        Required if category = 'HEATING'.\n        "
          },
          "meter_id": {
            "title": "Meter Id",
            "type": "string"
          },
          "multiplication_factor": {
            "default": "1",
            "title": "Multiplication Factor",
            "type": "string"
          },
          "sub_category": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SubCategory"
              },
              {
                "type": "null"
              }
            ],
            "description": "\n        Required if category = 'WATER'.\n        "
          },
          "units": {
            "$ref": "#/components/schemas/Units",
            "description": "\n        If category = 'WATER', then units must only be 'CUBIC_METERS'.\n        "
          }
        },
        "required": [
          "address",
          "meter_id",
          "units",
          "category",
          "external_id"
        ],
        "title": "UtilityMeterImportWrite",
        "type": "object"
      },
      "UtilityMeterListResponse": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/UtilityMeterData"
            },
            "title": "Data",
            "type": "array"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "UtilityMeterListResponse",
        "type": "object"
      },
      "UtilityMeterPatchAttributes": {
        "properties": {
          "activation_date": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Activation Date"
          },
          "cooling_system": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CoolingSystem"
              },
              {
                "type": "null"
              }
            ],
            "description": "Can only be updated if category = 'COOLING'."
          },
          "custom_conversion_factor": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Custom Conversion Factor"
          },
          "deactivation_date": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deactivation Date"
          },
          "description": {
            "anyOf": [
              {
                "maxLength": 255,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "external_id": {
            "anyOf": [
              {
                "maxLength": 255,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "External Id"
          },
          "heating_system": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeatingSystem"
              },
              {
                "type": "null"
              }
            ],
            "description": "Can only be updated if category = 'HEATING'."
          },
          "multiplication_factor": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Multiplication Factor"
          },
          "procured_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProcuredBy"
              },
              {
                "type": "null"
              }
            ]
          },
          "serial": {
            "anyOf": [
              {
                "maxLength": 255,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Serial"
          },
          "sub_category": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SubCategory"
              },
              {
                "type": "null"
              }
            ],
            "description": "Can only be updated if category = 'WATER'."
          },
          "units": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Units"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "title": "UtilityMeterPatchAttributes",
        "type": "object"
      },
      "UtilityMeterPatchPayload": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/UtilityMeterPatchPayloadData"
          }
        },
        "required": [
          "data"
        ],
        "title": "UtilityMeterPatchPayload",
        "type": "object"
      },
      "UtilityMeterPatchPayloadData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/UtilityMeterPatchAttributes"
          },
          "type": {
            "const": "UTILITY_METER",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "attributes"
        ],
        "title": "UtilityMeterPatchPayloadData",
        "type": "object"
      },
      "UtilityMeterPayload": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/UtilityMeterCreatePayloadData"
          }
        },
        "required": [
          "data"
        ],
        "title": "UtilityMeterPayload",
        "type": "object"
      },
      "UtilityMeterReadingAttributes": {
        "properties": {
          "reading_timestamp": {
            "description": "**Reading timestamp** \u00b7 **Ablesezeitpunkt**",
            "examples": [
              "2024-01-01T00:00:00Z"
            ],
            "format": "date-time",
            "title": "Reading Timestamp",
            "type": "string"
          },
          "reading_value": {
            "description": "**Reading value** \u00b7 **Z\u00e4hlerstand**",
            "examples": [
              1000
            ],
            "title": "Reading Value",
            "type": "string"
          }
        },
        "required": [
          "reading_value",
          "reading_timestamp"
        ],
        "title": "UtilityMeterReadingAttributes",
        "type": "object"
      },
      "UtilityMeterReadingData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/UtilityMeterReadingAttributes"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "UTILITY_METER_READING",
            "default": "UTILITY_METER_READING",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attributes"
        ],
        "title": "UtilityMeterReadingData",
        "type": "object"
      },
      "UtilityMeterReadingPayload": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/UtilityMeterReadingPayloadData"
          }
        },
        "required": [
          "data"
        ],
        "title": "UtilityMeterReadingPayload",
        "type": "object"
      },
      "UtilityMeterReadingPayloadData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/UtilityMeterReadingWrite"
          },
          "type": {
            "const": "UTILITY_METER_READING",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "attributes"
        ],
        "title": "UtilityMeterReadingPayloadData",
        "type": "object"
      },
      "UtilityMeterReadingResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/UtilityMeterReadingData"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "UtilityMeterReadingResponse",
        "type": "object"
      },
      "UtilityMeterReadingWithExternalIdPayload": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/UtilityMeterReadingWithExternalIdPayloadData"
          }
        },
        "required": [
          "data"
        ],
        "title": "UtilityMeterReadingWithExternalIdPayload",
        "type": "object"
      },
      "UtilityMeterReadingWithExternalIdPayloadData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/UtilityMeterReadingWithExternalIdWrite"
          },
          "type": {
            "const": "UTILITY_METER_READING",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "attributes"
        ],
        "title": "UtilityMeterReadingWithExternalIdPayloadData",
        "type": "object"
      },
      "UtilityMeterReadingWithExternalIdWrite": {
        "properties": {
          "batch_info_uuid": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The UUID of the utility data batch info this reading should be associated with.",
            "title": "Batch Info Uuid"
          },
          "external_meter_id": {
            "description": "The external_id of the utility meter this reading belongs to.",
            "examples": [
              "123XYZ"
            ],
            "maxLength": 255,
            "title": "External Meter Id",
            "type": "string"
          },
          "reading_timestamp": {
            "examples": [
              "2024-01-01T00:00:00Z"
            ],
            "format": "date-time",
            "title": "Reading Timestamp",
            "type": "string"
          },
          "reading_value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "examples": [
              1000
            ],
            "title": "Reading Value"
          }
        },
        "required": [
          "reading_value",
          "reading_timestamp",
          "external_meter_id"
        ],
        "title": "UtilityMeterReadingWithExternalIdWrite",
        "type": "object"
      },
      "UtilityMeterReadingWrite": {
        "properties": {
          "batch_info_uuid": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The UUID of the utility data batch info this reading should be associated with.",
            "title": "Batch Info Uuid"
          },
          "reading_timestamp": {
            "examples": [
              "2024-01-01T00:00:00Z"
            ],
            "format": "date-time",
            "title": "Reading Timestamp",
            "type": "string"
          },
          "reading_value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "examples": [
              1000
            ],
            "title": "Reading Value"
          }
        },
        "required": [
          "reading_value",
          "reading_timestamp"
        ],
        "title": "UtilityMeterReadingWrite",
        "type": "object"
      },
      "UtilityMeterResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/UtilityMeterData"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "UtilityMeterResponse",
        "type": "object"
      },
      "UtilityMeterWrite": {
        "properties": {
          "activation_date": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Activation Date"
          },
          "batch_info_uuid": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The UUID of the utility data batch info this meter should be associated with.",
            "title": "Batch Info Uuid"
          },
          "category": {
            "$ref": "#/components/schemas/Utility"
          },
          "cooling_system": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CoolingSystem"
              },
              {
                "type": "null"
              }
            ],
            "description": "\n        Required if category = 'COOLING'.\n        "
          },
          "custom_conversion_factor": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "\n        Required if category = 'HEATING' or 'ELECTRICITY' and units = 'CUBIC_METERS'.\n\n        If heating_system = 'GAS' and units = 'CUBIC_METERS',\n            we assume custom_conversion_factor = 10 if not provided.\n\n        If heating_system = 'DISTRICT_HEATING' and units = 'CUBIC_METERS',\n            we assume custom_conversion_factor = 704 if not provided.\n        ",
            "title": "Custom Conversion Factor"
          },
          "deactivation_date": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deactivation Date"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "external_building_id": {
            "title": "External Building Id",
            "type": "string"
          },
          "external_id": {
            "title": "External Id",
            "type": "string"
          },
          "heating_system": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeatingSystem"
              },
              {
                "type": "null"
              }
            ],
            "description": "\n        Required if category = 'HEATING'.\n        "
          },
          "meter_id": {
            "title": "Meter Id",
            "type": "string"
          },
          "multiplication_factor": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "default": "1",
            "title": "Multiplication Factor"
          },
          "procured_by": {
            "$ref": "#/components/schemas/ProcuredBy",
            "default": "LANDLORD"
          },
          "sub_category": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SubCategory"
              },
              {
                "type": "null"
              }
            ],
            "description": "\n        Required if category = 'WATER'.\n        "
          },
          "units": {
            "$ref": "#/components/schemas/Units",
            "description": "\n        If category = 'WATER', then units must only be 'CUBIC_METERS'.\n        "
          }
        },
        "required": [
          "external_building_id",
          "meter_id",
          "units",
          "category",
          "external_id"
        ],
        "title": "UtilityMeterWrite",
        "type": "object"
      },
      "ValidationError": {
        "properties": {
          "ctx": {
            "title": "Context",
            "type": "object"
          },
          "input": {
            "title": "Input"
          },
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "title": "Location",
            "type": "array"
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError",
        "type": "object"
      },
      "WELLHealthSafetyRatingLevel": {
        "enum": [
          "PLATINUM",
          "GOLD",
          "SILVER",
          "BRONZE"
        ],
        "title": "WELLHealthSafetyRatingLevel",
        "type": "string"
      },
      "WasteCategory": {
        "enum": [
          "BULKY",
          "CANS",
          "GENERAL",
          "GLASS",
          "LIGHT_PACKAGING",
          "ORGANIC",
          "PAPER",
          "TEXTILES",
          "METAL",
          "WOOD",
          "OTHER"
        ],
        "title": "WasteCategory",
        "type": "string"
      },
      "WasteCollectionAttributes": {
        "properties": {
          "category": {
            "$ref": "#/components/schemas/WasteCategory",
            "description": "**Waste category** \u00b7 **Abfallkategorie**"
          },
          "conversion_factor": {
            "description": "**Applied conversion factor in tonnes per unit** \u00b7 **Angewendeter Umrechnungsfaktor in Tonnen pro Einheit**",
            "title": "Conversion Factor",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Description** \u00b7 **Beschreibung**",
            "title": "Description"
          },
          "external_building_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**External building ID** \u00b7 **Externe Geb\u00e4ude-ID**",
            "title": "External Building Id"
          },
          "external_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**External waste collection ID** \u00b7 **Externe Abfallsammlungs-ID**",
            "title": "External Id"
          },
          "is_hazardous": {
            "description": "**Hazardous waste** \u00b7 **Gef\u00e4hrlicher Abfall**",
            "title": "Is Hazardous",
            "type": "boolean"
          },
          "name": {
            "description": "**Name** \u00b7 **Name**",
            "title": "Name",
            "type": "string"
          },
          "unit": {
            "$ref": "#/components/schemas/WasteUnit",
            "description": "**Unit of the quantities** \u00b7 **Einheit der Mengen**"
          }
        },
        "required": [
          "external_building_id",
          "external_id",
          "name",
          "category",
          "unit",
          "is_hazardous",
          "description",
          "conversion_factor"
        ],
        "title": "WasteCollectionAttributes",
        "type": "object"
      },
      "WasteCollectionData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/WasteCollectionAttributes"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "WASTE_COLLECTION",
            "default": "WASTE_COLLECTION",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attributes"
        ],
        "title": "WasteCollectionData",
        "type": "object"
      },
      "WasteCollectionListResponse": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/WasteCollectionData"
            },
            "title": "Data",
            "type": "array"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "WasteCollectionListResponse",
        "type": "object"
      },
      "WasteCollectionPayload": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/WasteCollectionPayloadData"
          }
        },
        "required": [
          "data"
        ],
        "title": "WasteCollectionPayload",
        "type": "object"
      },
      "WasteCollectionPayloadData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/WasteCollectionWrite"
          },
          "type": {
            "const": "WASTE_COLLECTION",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "attributes"
        ],
        "title": "WasteCollectionPayloadData",
        "type": "object"
      },
      "WasteCollectionResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/WasteCollectionData"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "WasteCollectionResponse",
        "type": "object"
      },
      "WasteCollectionWrite": {
        "properties": {
          "category": {
            "$ref": "#/components/schemas/WasteCategory"
          },
          "conversion_factor": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Conversion Factor"
          },
          "description": {
            "anyOf": [
              {
                "maxLength": 255,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "external_building_id": {
            "minLength": 1,
            "title": "External Building Id",
            "type": "string"
          },
          "external_id": {
            "maxLength": 255,
            "minLength": 1,
            "title": "External Id",
            "type": "string"
          },
          "is_hazardous": {
            "default": false,
            "title": "Is Hazardous",
            "type": "boolean"
          },
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "unit": {
            "$ref": "#/components/schemas/WasteUnit"
          }
        },
        "required": [
          "external_building_id",
          "external_id",
          "name",
          "category",
          "unit"
        ],
        "title": "WasteCollectionWrite",
        "type": "object"
      },
      "WastePeriodAttributes": {
        "properties": {
          "end_date": {
            "description": "**End date** \u00b7 **Enddatum**",
            "format": "date",
            "title": "End Date",
            "type": "string"
          },
          "external_waste_collection_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**External waste collection ID** \u00b7 **Externe Abfallsammlungs-ID**",
            "title": "External Waste Collection Id"
          },
          "quantity": {
            "description": "**Quantity in the waste collection's unit** \u00b7 **Menge in der Einheit der Abfallsammlung**",
            "title": "Quantity",
            "type": "string"
          },
          "quantity_tonnes": {
            "description": "**Quantity in tonnes** \u00b7 **Menge in Tonnen**",
            "title": "Quantity Tonnes",
            "type": "string"
          },
          "start_date": {
            "description": "**Start date** \u00b7 **Startdatum**",
            "format": "date",
            "title": "Start Date",
            "type": "string"
          }
        },
        "required": [
          "external_waste_collection_id",
          "start_date",
          "end_date",
          "quantity",
          "quantity_tonnes"
        ],
        "title": "WastePeriodAttributes",
        "type": "object"
      },
      "WastePeriodData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/WastePeriodAttributes"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "relationships": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationships"
          },
          "type": {
            "const": "WASTE_PERIOD",
            "default": "WASTE_PERIOD",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attributes"
        ],
        "title": "WastePeriodData",
        "type": "object"
      },
      "WastePeriodListResponse": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/WastePeriodData"
            },
            "title": "Data",
            "type": "array"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "WastePeriodListResponse",
        "type": "object"
      },
      "WastePeriodPayload": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/WastePeriodPayloadData"
          }
        },
        "required": [
          "data"
        ],
        "title": "WastePeriodPayload",
        "type": "object"
      },
      "WastePeriodPayloadData": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/WastePeriodWrite"
          },
          "type": {
            "const": "WASTE_PERIOD",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "attributes"
        ],
        "title": "WastePeriodPayloadData",
        "type": "object"
      },
      "WastePeriodResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/WastePeriodData"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Error"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errors"
          },
          "included": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BaseDataSchema"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          },
          "links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Links"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "title": "WastePeriodResponse",
        "type": "object"
      },
      "WastePeriodWrite": {
        "properties": {
          "end_date": {
            "format": "date",
            "title": "End Date",
            "type": "string"
          },
          "external_waste_collection_id": {
            "title": "External Waste Collection Id",
            "type": "string"
          },
          "quantity": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Quantity"
          },
          "start_date": {
            "format": "date",
            "title": "Start Date",
            "type": "string"
          }
        },
        "required": [
          "external_waste_collection_id",
          "start_date",
          "end_date",
          "quantity"
        ],
        "title": "WastePeriodWrite",
        "type": "object"
      },
      "WasteUnit": {
        "enum": [
          "TONNE",
          "KILOGRAM",
          "POUND",
          "CUBIC_METER",
          "LITRE"
        ],
        "title": "WasteUnit",
        "type": "string"
      },
      "WiredScoreLevel": {
        "enum": [
          "PLATINUM",
          "GOLD",
          "SILVER",
          "CERTIFIED",
          "UNDER_CERTIFICATION"
        ],
        "title": "WiredScoreLevel",
        "type": "string"
      },
      "alasco__ivy__public__api__utilities__consumption_intervals__BulkError": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/ConsumptionIntervalWrite-Output"
          },
          "detail": {
            "items": {
              "$ref": "#/components/schemas/alasco__ivy__public__api__utilities__consumption_intervals__ErrorDetail"
            },
            "title": "Detail",
            "type": "array"
          },
          "index": {
            "title": "Index",
            "type": "integer"
          }
        },
        "required": [
          "index",
          "attributes",
          "detail"
        ],
        "title": "BulkError",
        "type": "object"
      },
      "alasco__ivy__public__api__utilities__consumption_intervals__ErrorDetail": {
        "properties": {
          "code": {
            "$ref": "#/components/schemas/ConsumptionIntervalCreateErrorCode"
          },
          "loc": {
            "items": {
              "type": "string"
            },
            "title": "Loc",
            "type": "array"
          },
          "msg": {
            "title": "Msg",
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "code"
        ],
        "title": "ErrorDetail",
        "type": "object"
      },
      "alasco__ivy__public__api__utilities__utility_data_batch_info__UtilityDataBatchInfoWrite": {
        "properties": {
          "data_source_label": {
            "title": "Data Source Label",
            "type": "string"
          },
          "data_source_value": {
            "title": "Data Source Value",
            "type": "string"
          },
          "external_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "External Id"
          }
        },
        "required": [
          "data_source_value",
          "data_source_label"
        ],
        "title": "UtilityDataBatchInfoWrite",
        "type": "object"
      },
      "alasco__ivy__public__api__utilities__utility_meter_imports__BulkError": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/UtilityMeterImportWrite-Output"
          },
          "detail": {
            "items": {
              "$ref": "#/components/schemas/alasco__ivy__public__api__utilities__utility_meter_imports__ErrorDetail"
            },
            "title": "Detail",
            "type": "array"
          },
          "index": {
            "title": "Index",
            "type": "integer"
          }
        },
        "required": [
          "index",
          "attributes",
          "detail"
        ],
        "title": "BulkError",
        "type": "object"
      },
      "alasco__ivy__public__api__utilities__utility_meter_imports__ErrorDetail": {
        "properties": {
          "code": {
            "$ref": "#/components/schemas/UtilityMeterImportCreateErrorCode"
          },
          "loc": {
            "items": {
              "type": "string"
            },
            "title": "Loc",
            "type": "array"
          },
          "msg": {
            "title": "Msg",
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "code"
        ],
        "title": "ErrorDetail",
        "type": "object"
      },
      "alasco__public_api__esg__web__v1__schemas__utilities__utility_batch_info__UtilityDataBatchInfoWrite": {
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/alasco__ivy__public__api__utilities__utility_data_batch_info__UtilityDataBatchInfoWrite"
          },
          "type": {
            "const": "UTILITY_DATA_BATCH_INFO",
            "default": "UTILITY_DATA_BATCH_INFO",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "attributes"
        ],
        "title": "UtilityDataBatchInfoWrite",
        "type": "object"
      }
    },
    "securitySchemes": {
      "API Key": {
        "bearerFormat": "alasco_ak_\u2026",
        "description": "\nSend your API key in the `Authorization` header: `Authorization: Bearer <key>`.\nAPI keys start with `alasco_ak_`.\n\nAccount administrators create and revoke API keys within Alasco once the account is activated\nfor public API access. An account can have several active keys, so each integration gets its\nown key and keys can be rotated without downtime: create the new key, deploy it, then revoke the\nold one. A key is shown only once, when it is created.\nTo get access, contact your Alasco account manager or [kontakt@alasco.de](mailto:kontakt@alasco.de).\n",
        "scheme": "bearer",
        "type": "http"
      },
      "Legacy API Key": {
        "description": "\nIntegrations set up before API keys send a legacy key in `X-API-KEY` together with a token in\n`X-API-TOKEN`. These keep working, but new credentials are only issued as API keys. Don't send\nthem together with the `Authorization` header.\n",
        "in": "header",
        "name": "X-API-KEY",
        "type": "apiKey"
      },
      "Legacy API Token": {
        "description": "\nThe legacy token sent together with `X-API-KEY`. New credentials are only issued as API keys.\n",
        "in": "header",
        "name": "X-API-TOKEN",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "description": "\n# General\n\n## Introduction\n\nYou can use the Alasco API to integrate your application with Alasco. The Alasco API is REST-based and follows JSON:API principles for structuring responses.\n\nStarting from version 1.0, the API is stable. We are continuously improving our API and new endpoints will be added. Any updates or changes within this major version will be backward-compatible and can be found in this documentation.\n\n\nFor getting acccess to the Alasco API, please reach out to us: kontakt@alasco.de.\n\nThe base URL for all endpoints is: https://api.alasco.de/esg/v1\n\nThe Alasco API supports compressed payloads. If you would like to make use of this, you have to specify the `Accept-Encoding` header. Supported encodings are `gzip` and `br`.\n\n## Domain model\n\nObjects relate as follows (each `\u2192` is a navigable sub-resource):\n\n- **Building** \u2192 **Utility Meters**, plus custom data and analysis results.\n- **Utility Meter** \u2192 **Meter Readings**, which roll up into **Consumption** (annual and interval).\n- **Tenants** are linked to consumption via **tenant-consumption links**.\n- **Building** \u2192 **Waste Collections** \u2192 **Waste Periods**, the quantity collected per date range.\n- **Files** carry metadata and external IDs; **file events** and **audit logs** track changes.\n\nThe Alasco API uses pagination. The page size is 100, additional pages can be accessed using a `next` link.\n",
    "title": "ESG API",
    "version": "1.0",
    "x-logo": {
      "url": "https://assets-global.website-files.com/656ef2eb27ad41897248f866/659eebec190ae7aaf4162f09_Logotype_Alasco_white_RGB%202.png"
    }
  },
  "openapi": "3.1.0",
  "paths": {
    "/buildings/": {
      "get": {
        "operationId": "get_buildings_buildings__get",
        "parameters": [
          {
            "description": "\n        Optional, comma-separated list of entities to include in the building attributes.\n        ",
            "in": "query",
            "name": "include",
            "required": false,
            "schema": {
              "default": "",
              "description": "\n        Optional, comma-separated list of entities to include in the building attributes.\n        ",
              "examples": [
                "energy_certificates,building_certificates"
              ],
              "title": "Include",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuildingListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Get Buildings",
        "tags": [
          "Buildings"
        ]
      }
    },
    "/buildings/{building_uuid}/analysis-result/": {
      "get": {
        "operationId": "get_analysis_result_buildings__building_uuid__analysis_result__get",
        "parameters": [
          {
            "in": "path",
            "name": "building_uuid",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Building Uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnalysisResultResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Get Analysis Result",
        "tags": [
          "Buildings"
        ]
      }
    },
    "/buildings/{building_uuid}/custom-data/": {
      "get": {
        "operationId": "get_custom_data_buildings__building_uuid__custom_data__get",
        "parameters": [
          {
            "in": "path",
            "name": "building_uuid",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Building Uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomDataListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Get Custom Data",
        "tags": [
          "Buildings"
        ]
      }
    },
    "/buildings/{building_uuid}/utility-meters/": {
      "get": {
        "operationId": "get_utility_meters_buildings__building_uuid__utility_meters__get",
        "parameters": [
          {
            "in": "path",
            "name": "building_uuid",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Building Uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UtilityMeterListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Get Utility Meters",
        "tags": [
          "Utility Meters"
        ]
      }
    },
    "/buildings/{building_uuid}/utility-meters/{meter_uuid}/readings/": {
      "post": {
        "operationId": "create_utility_meter_reading_buildings__building_uuid__utility_meters__meter_uuid__readings__post",
        "parameters": [
          {
            "in": "path",
            "name": "building_uuid",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Building Uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "meter_uuid",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Meter Uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UtilityMeterReadingPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UtilityMeterReadingResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Create Utility Meter Reading",
        "tags": [
          "Utility Meter Readings"
        ]
      }
    },
    "/consumption-intervals/": {
      "post": {
        "operationId": "create_consumption_interval_consumption_intervals__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsumptionIntervalPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumptionIntervalResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Create Consumption Interval",
        "tags": [
          "Consumption Intervals"
        ]
      }
    },
    "/consumption-intervals/bulk-partial/": {
      "post": {
        "operationId": "bulk_create_consumption_intervals_partial_consumption_intervals_bulk_partial__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkConsumptionIntervalPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "207": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkPartialConsumptionIntervalResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Bulk Create Consumption Intervals Partial",
        "tags": [
          "Consumption Intervals"
        ]
      }
    },
    "/consumption-intervals/bulk/": {
      "post": {
        "operationId": "bulk_create_consumption_intervals_consumption_intervals_bulk__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkConsumptionIntervalPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkConsumptionIntervalResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Bulk Create Consumption Intervals",
        "tags": [
          "Consumption Intervals"
        ]
      }
    },
    "/consumption/annual/": {
      "get": {
        "operationId": "get_annual_consumption_consumption_annual__get",
        "parameters": [
          {
            "description": "External ID of the building.",
            "in": "query",
            "name": "external_building_id",
            "required": true,
            "schema": {
              "description": "External ID of the building.",
              "title": "External Building Id",
              "type": "string"
            }
          },
          {
            "description": "The calendar year to retrieve consumption for.",
            "in": "query",
            "name": "year",
            "required": true,
            "schema": {
              "description": "The calendar year to retrieve consumption for.",
              "title": "Year",
              "type": "integer"
            }
          },
          {
            "description": "Optional. Filter results to the consumption entry for a specific meter, identified by its external ID. Filtering by null is not supported- omit this parameter to get all entries.",
            "in": "query",
            "name": "external_meter_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Optional. Filter results to the consumption entry for a specific meter, identified by its external ID. Filtering by null is not supported- omit this parameter to get all entries.",
              "title": "External Meter Id"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnnualConsumptionListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Get Annual Consumption",
        "tags": [
          "Annual Consumption"
        ]
      }
    },
    "/consumption/annual/{annual_consumption_id}/": {
      "patch": {
        "operationId": "update_annual_consumption_consumption_annual__annual_consumption_id___patch",
        "parameters": [
          {
            "in": "path",
            "name": "annual_consumption_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Annual Consumption Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnnualConsumptionPatchPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnnualConsumptionResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Update Annual Consumption",
        "tags": [
          "Annual Consumption"
        ]
      }
    },
    "/file-events/": {
      "get": {
        "operationId": "get_file_events_file_events__get",
        "parameters": [
          {
            "in": "query",
            "name": "start_time",
            "required": true,
            "schema": {
              "format": "date-time",
              "title": "Start Time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_time",
            "required": true,
            "schema": {
              "format": "date-time",
              "title": "End Time",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentEventsResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Get File Events",
        "tags": [
          "Documents"
        ]
      }
    },
    "/files/": {
      "delete": {
        "operationId": "delete_file_files__delete",
        "parameters": [
          {
            "in": "query",
            "name": "external_id",
            "required": true,
            "schema": {
              "title": "External Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Delete File",
        "tags": [
          "Documents"
        ]
      },
      "post": {
        "operationId": "upload_file_files__post",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_file_files__post"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileUploadResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Upload File",
        "tags": [
          "Documents"
        ]
      }
    },
    "/files/metadata/": {
      "get": {
        "operationId": "get_file_metadata_files_metadata__get",
        "parameters": [
          {
            "in": "query",
            "name": "external_id",
            "required": true,
            "schema": {
              "title": "External Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileMetadataResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Get File Metadata",
        "tags": [
          "Documents"
        ]
      },
      "patch": {
        "operationId": "patch_file_metadata_files_metadata__patch",
        "parameters": [
          {
            "in": "query",
            "name": "external_id",
            "required": true,
            "schema": {
              "title": "External Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileMetadataUpdateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileMetadataResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Patch File Metadata",
        "tags": [
          "Documents"
        ]
      }
    },
    "/files/{file_id}/": {
      "get": {
        "operationId": "get_file_files__file_id___get",
        "parameters": [
          {
            "in": "path",
            "name": "file_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "File Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileGetResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Get File",
        "tags": [
          "Documents"
        ]
      }
    },
    "/files/{file_id}/external-id/": {
      "post": {
        "operationId": "create_file_external_id_files__file_id__external_id__post",
        "parameters": [
          {
            "in": "path",
            "name": "file_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "File Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalIdRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalIdResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Create File External Id",
        "tags": [
          "Documents"
        ]
      }
    },
    "/meter-readings/": {
      "post": {
        "operationId": "create_utility_meter_reading_with_external_id_meter_readings__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UtilityMeterReadingWithExternalIdPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UtilityMeterReadingResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Create Utility Meter Reading With External Id",
        "tags": [
          "Utility Meter Readings"
        ]
      }
    },
    "/meter-readings/bulk/": {
      "post": {
        "operationId": "bulk_create_utility_meter_readings_meter_readings_bulk__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkUtilityMeterReadingPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkUtilityMeterReadingResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Bulk Create Utility Meter Readings",
        "tags": [
          "Utility Meter Readings"
        ]
      }
    },
    "/raw-audit/": {
      "get": {
        "operationId": "get_events_raw_audit__get",
        "parameters": [
          {
            "in": "query",
            "name": "start",
            "required": true,
            "schema": {
              "format": "date-time",
              "title": "Start",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": true,
            "schema": {
              "format": "date-time",
              "title": "End",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditLogListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Get Events",
        "tags": [
          "Audit Log"
        ]
      }
    },
    "/raw-user-audit/": {
      "get": {
        "operationId": "get_user_events_raw_user_audit__get",
        "parameters": [
          {
            "in": "query",
            "name": "start",
            "required": true,
            "schema": {
              "format": "date-time",
              "title": "Start",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": true,
            "schema": {
              "format": "date-time",
              "title": "End",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserAuditLogListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Get User Events",
        "tags": [
          "Audit Log"
        ]
      }
    },
    "/tenant-consumption-links/": {
      "delete": {
        "operationId": "delete_tenant_consumption_link_tenant_consumption_links__delete",
        "parameters": [
          {
            "description": "External ID of the tenant.",
            "in": "query",
            "name": "external_tenant_id",
            "required": true,
            "schema": {
              "description": "External ID of the tenant.",
              "title": "External Tenant Id",
              "type": "string"
            }
          },
          {
            "description": "UUID of the annual consumption entry.",
            "in": "query",
            "name": "annual_consumption_id",
            "required": true,
            "schema": {
              "description": "UUID of the annual consumption entry.",
              "format": "uuid",
              "title": "Annual Consumption Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Delete Tenant Consumption Link",
        "tags": [
          "Tenant Consumption Links"
        ]
      },
      "post": {
        "operationId": "create_tenant_consumption_link_tenant_consumption_links__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TenantConsumptionLinkPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantConsumptionLinkResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Create Tenant Consumption Link",
        "tags": [
          "Tenant Consumption Links"
        ]
      }
    },
    "/tenants/": {
      "post": {
        "operationId": "upsert_tenant_tenants__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TenantPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantResponse"
                }
              }
            },
            "description": "OK"
          },
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Upsert Tenant",
        "tags": [
          "Tenants"
        ]
      }
    },
    "/tenants/{external_tenant_id}/attachments/": {
      "post": {
        "operationId": "create_tenant_attachment_tenants__external_tenant_id__attachments__post",
        "parameters": [
          {
            "in": "path",
            "name": "external_tenant_id",
            "required": true,
            "schema": {
              "title": "External Tenant Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TenantAttachmentPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantAttachmentResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Create Tenant Attachment",
        "tags": [
          "Tenants"
        ]
      }
    },
    "/utility-data-batch-info/": {
      "post": {
        "operationId": "add_utility_data_batch_info_utility_data_batch_info__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UtilityDataBatchInfoPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UtilityDataBatchInfoResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Add Utility Data Batch Info",
        "tags": [
          "Utility Data Batch Info"
        ]
      }
    },
    "/utility-meters/": {
      "post": {
        "operationId": "add_utility_meter_utility_meters__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UtilityMeterPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UtilityMeterResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Add Utility Meter",
        "tags": [
          "Utility Meters"
        ]
      }
    },
    "/utility-meters/bulk-import-partial/": {
      "post": {
        "operationId": "bulk_add_utility_meter_import_partial_utility_meters_bulk_import_partial__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UtilityMeterImportBulkPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "207": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkPartialUtilityMeterImportResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Bulk Add Utility Meter Import Partial",
        "tags": [
          "Utility Meters"
        ]
      }
    },
    "/utility-meters/import/": {
      "post": {
        "operationId": "add_utility_meter_import_utility_meters_import__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UtilityMeterImportPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UtilityMeterImportResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Add Utility Meter Import",
        "tags": [
          "Utility Meters"
        ]
      }
    },
    "/utility-meters/{meter_external_id}/": {
      "patch": {
        "operationId": "update_utility_meter_utility_meters__meter_external_id___patch",
        "parameters": [
          {
            "in": "path",
            "name": "meter_external_id",
            "required": true,
            "schema": {
              "title": "Meter External Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UtilityMeterPatchPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UtilityMeterResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Update Utility Meter",
        "tags": [
          "Utility Meters"
        ]
      }
    },
    "/waste-collections/": {
      "get": {
        "operationId": "get_waste_collections_waste_collections__get",
        "parameters": [
          {
            "description": "Limit the list to one building.",
            "in": "query",
            "name": "external_building_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Limit the list to one building.",
              "title": "External Building Id"
            }
          },
          {
            "description": "Limit the list to one waste collection.",
            "in": "query",
            "name": "external_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Limit the list to one waste collection.",
              "title": "External Id"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WasteCollectionListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Get Waste Collections",
        "tags": [
          "Waste Collections"
        ]
      },
      "post": {
        "operationId": "upsert_waste_collection_waste_collections__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WasteCollectionPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WasteCollectionResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Upsert Waste Collection",
        "tags": [
          "Waste Collections"
        ]
      }
    },
    "/waste-periods/": {
      "get": {
        "operationId": "get_waste_periods_waste_periods__get",
        "parameters": [
          {
            "description": "Limit the list to one waste collection.",
            "in": "query",
            "name": "external_waste_collection_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Limit the list to one waste collection.",
              "title": "External Waste Collection Id"
            }
          },
          {
            "description": "Limit the list to one building.",
            "in": "query",
            "name": "external_building_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Limit the list to one building.",
              "title": "External Building Id"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WastePeriodListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Get Waste Periods",
        "tags": [
          "Waste Periods"
        ]
      },
      "post": {
        "operationId": "upsert_waste_period_waste_periods__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WastePeriodPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WastePeriodResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "API Key": []
          },
          {
            "Legacy API Key": [],
            "Legacy API Token": []
          }
        ],
        "summary": "Upsert Waste Period",
        "tags": [
          "Waste Periods"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.alasco.de/esg/v1"
    }
  ],
  "tags": [
    {
      "description": "A **Building** is a property in your Alasco asset register and the anchor for ESG data - its **Utility Meters**, **Tenants** and **Documents** all attach to it. Buildings are read-only here, identified by a UUID (and an `external_building_id` used when creating related records); each also exposes its custom data and latest CO2 analysis result.",
      "name": "Buildings"
    },
    {
      "description": "A **Utility Meter** measures consumption (electricity, gas, water, heating or cooling) for a **Building**. Meters are created and updated through the API, identified by your `external_id`, and own their **Readings** and consumption data.",
      "name": "Utility Meters"
    },
    {
      "description": "A **Utility Meter Reading** is a timestamped meter value. Readings are written individually or in bulk (upsert), keyed by the meter's external id, and feed the derived consumption figures.",
      "name": "Utility Meter Readings"
    },
    {
      "description": "**Annual Consumption** is the system-computed consumption per meter and calendar year, including emission factors and tenant allocations. The figures are derived from readings rather than written directly; you can read them and update the market-based emission factor.",
      "name": "Annual Consumption"
    },
    {
      "description": "A **Consumption Interval** is a consumption total for a period (start to end date) for a meter. Intervals are created individually or in bulk - all-or-nothing (`/bulk/`) or per-item (`/bulk-partial/`) - with upsert semantics.",
      "name": "Consumption Intervals"
    },
    {
      "description": "A **Tenant** is an occupant of a **Building**, identified by your `external_id` and linked to a building by `external_building_id`. Tenants are upserted through the API (created or updated by external id) and can carry attachments.",
      "name": "Tenants"
    },
    {
      "description": "A **Tenant Consumption Link** attributes a year's **Annual Consumption** to a **Tenant**. Links are created and deleted through the API by tenant external id and annual-consumption id (both must belong to the same building).",
      "name": "Tenant Consumption Links"
    },
    {
      "description": "A **Waste Collection** is one waste stream of a **Building**, for example one contract and waste category. It is identified by your `external_id`, linked to a building by `external_building_id`, and upserted through the API: each request replaces the collection's attributes, so an omitted optional field is reset to its default. Category, unit and building cannot change after creation. Volume units are converted to tonnes with the country default density or your `conversion_factor` (tonnes per unit); METAL and WOOD by volume require it, and OTHER by volume without it uses 1. Weight units use a fixed factor, so `conversion_factor` is rejected for them. Error codes: `ALA-4001` category changed, `ALA-4002` unit changed, `ALA-4003` building changed, `ALA-4004` conversion factor sent for a weight unit, `ALA-4005` conversion factor missing for a volume unit.",
      "name": "Waste Collections"
    },
    {
      "description": "A **Waste Period** is the quantity collected for a **Waste Collection** over a date range, in the collection's unit. Periods are upserted by collection external id and exact dates; periods with different dates may overlap. Each period also reports the quantity in tonnes. A period sent with wrong dates is kept next to the corrected one and has to be removed in the app. Error codes: `ALA-4001` end date before start date.",
      "name": "Waste Periods"
    },
    {
      "description": "A **Document** is a file attached to one or more **Buildings** (certificates, leases and similar). Documents can be uploaded, downloaded, given an external id, have their metadata read and updated, and be deleted; a `file-events` feed reports document changes over a time range. Metadata edits and deletion apply to API-sourced documents.",
      "name": "Documents"
    },
    {
      "description": "**Utility Data Batch Info** records the source and label of a batch of imported utility data. Create one and reference it (via `batch_info_uuid`) when writing meters, readings or consumption intervals to group them under an import; it cannot be changed once created.",
      "name": "Utility Data Batch Info"
    },
    {
      "description": "The **Audit Log** is a read-only account-level trail of changes. A raw audit feed reports table-level inserts, updates and deletes, and a user audit feed reports user- and API-triggered changes; both are queried over a bounded time range (up to 24 hours).",
      "name": "Audit Log"
    }
  ]
}