{"swagger": "2.0", "basePath": "/", "paths": {"/api/v0.2/ai/anthropic/messages": {"post": {"responses": {"200": {"description": "Success"}}, "description": "Runs a request against Anthropic messages API.", "operationId": "post_anthropic_chat_completions_resource", "tags": ["EEP API"]}}, "/api/v0.2/ai/openai/chat/completions": {"post": {"responses": {"200": {"description": "Success"}}, "description": "Runs a request against OpenAIs chat completion API.", "operationId": "post_open_ai_chat_completions_resource", "tags": ["EEP API"]}}, "/api/v0.2/anomaly_properties": {"parameters": [{"description": "Internal id of a building asset. If provided, only calculation flows that belong to that building will be returned.", "name": "filterByBuildingId", "type": "string", "in": "query"}], "get": {"responses": {"200": {"description": "Success"}}, "description": "Get list of systems that are monitored for anomalies", "operationId": "get_anomaly_properties_get", "tags": ["EEP API"]}}, "/api/v0.2/assets/fom": {"post": {"responses": {"200": {"description": "Success"}}, "description": "Manual assets: create or update metadata or description. Create or update the FOM metadata for an asset\nFor all other assets: Update fom-data.\n\n\nEmpty fields removes metadata-field in cdf.\nLeave 'external_id' empty to create new manual asset.", "operationId": "post_fom_api_create_update", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/FOM"}}], "tags": ["EEP API"]}}, "/api/v0.2/assets/fom/{external_id}": {"parameters": [{"name": "external_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Success"}}, "description": "Delete user defined asset and fom information", "operationId": "delete_fom_api_delete", "tags": ["EEP API"]}}, "/api/v0.2/assets/labels/delete": {"post": {"responses": {"200": {"description": "Success"}}, "operationId": "post_asset_labels_delete", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/LabelUpdate"}}], "tags": ["EEP API"]}}, "/api/v0.2/assets/labels/update": {"post": {"responses": {"200": {"description": "Success"}}, "operationId": "post_asset_labels_updater", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/LabelUpdate"}}], "tags": ["EEP API"]}}, "/api/v0.2/building/hide": {"post": {"responses": {"200": {"description": "Success"}}, "description": "Hide and unhide building", "operationId": "post_building_hide", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BuildingHide"}}], "tags": ["EEP API"]}}, "/api/v0.2/calculation_flows": {"post": {"responses": {"200": {"description": "Success"}}, "description": "Create or update calculation flow", "operationId": "post_calculation_flows_resource", "tags": ["EEP API"]}, "get": {"responses": {"200": {"description": "Success"}}, "description": "Get calculation flows", "operationId": "get_calculation_flows_resource", "parameters": [{"description": "Filter returned calculation flow by type. Valid values are \"virtualSensor\", \"cloudAutomation\" and \"flexAutomation\"", "name": "filterByType", "type": "string", "in": "query"}, {"description": "Internal id of a building asset. If provided, only calculation flows that belong to that building will be returned.", "name": "filterByBuildingId", "type": "string", "in": "query"}], "tags": ["EEP API"]}}, "/api/v0.2/calculation_flows/run": {"post": {"responses": {"200": {"description": "Success"}}, "description": "Execute a calculation flow and return the results", "operationId": "post_live_calculation_flow", "parameters": [{"description": "Milliseconds how long back in time to run the calculation.", "name": "period", "type": "string", "in": "query"}, {"description": "Flag to indicate if the result should be written to CDF (dryrun=0) or returned as JSON (dryrun=1).", "name": "dryrun", "type": "string", "in": "query"}], "tags": ["EEP API"]}}, "/api/v0.2/calculation_flows/{calculation_flow_id}": {"delete": {"responses": {"200": {"description": "Success"}}, "description": "Delete calculation flow", "operationId": "delete_calculation_flow_resource", "parameters": [{"name": "calculation_flow_id", "in": "path", "required": true, "type": "string", "description": "UUID of the calculation flow", "format": "uuid"}], "tags": ["EEP API"]}, "get": {"responses": {"200": {"description": "Success"}}, "description": "Get calculation flow", "operationId": "get_calculation_flow_resource", "parameters": [{"name": "calculation_flow_id", "in": "path", "required": true, "type": "string", "description": "UUID of the calculation flow", "format": "uuid"}], "tags": ["EEP API"]}}, "/api/v0.2/calculation_flows/{calculation_flow_id}/run": {"get": {"responses": {"200": {"description": "Success"}}, "description": "Execute calculation flow and write results to CDF", "operationId": "get_calculation_flow_run", "parameters": [{"name": "calculation_flow_id", "in": "path", "required": true, "type": "string", "description": "UUID of the calculation flow", "format": "uuid"}, {"description": "Milliseconds how long back in time to run the calculation.", "name": "period", "type": "string", "in": "query"}, {"description": "Unix time in milliseconds. Can only be used if period is not specified.", "name": "start", "type": "string", "in": "query"}, {"description": "Unix time in milliseconds. Can only be used if period is not specified.", "name": "end", "type": "string", "in": "query"}, {"description": "If true, all output datapoints are deleted before running the flow.", "name": "purge", "type": "string", "in": "query"}], "tags": ["EEP API"]}}, "/api/v0.2/flex_automations": {"post": {"responses": {"409": {"description": "An activation is still in flight, or a potential flow already serves this automation"}, "404": {"description": "The payload carries an id that no flex automation has"}, "403": {"description": "The caller has read-only access"}, "401": {"description": "The caller is not a known user, or may not access the assets the flow writes, either as stored or as the payload leaves them"}, "400": {"description": "The payload is not a valid flex automation"}}, "description": "Create or update a flex automation", "operationId": "post_flex_automations_resource", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/FlexAutomation"}}], "tags": ["EEP API"]}, "get": {"responses": {"401": {"description": "The caller is not a known user, or may not access the assets the flow writes"}, "400": {"description": "filterByBuildingId is missing"}}, "description": "Get flex automations", "operationId": "get_flex_automations_resource", "parameters": [{"description": "Internal id of a building asset. Only automations belonging to that building are returned.", "name": "filterByBuildingId", "type": "string", "in": "query"}], "tags": ["EEP API"]}}, "/api/v0.2/flex_automations/run": {"post": {"responses": {"403": {"description": "The caller has read-only access, or dryrun is not 1"}, "401": {"description": "The caller is not a known user, or may not access the assets the flow writes"}, "400": {"description": "The payload is not a valid flex automation"}}, "description": "Simulate a flex automation and return the results", "operationId": "post_live_flex_automation", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/FlexAutomation"}}, {"description": "Milliseconds how long back in time to run the calculation.", "name": "period", "type": "string", "in": "query"}, {"description": "Must be 1. An automation is written by the flex scheduler and the flex worker.", "name": "dryrun", "type": "string", "in": "query"}], "tags": ["EEP API"]}}, "/api/v0.2/flex_automations/{flex_automation_id}": {"delete": {"responses": {"404": {"description": "No flex automation has that id"}, "403": {"description": "The caller has read-only access"}, "401": {"description": "The caller is not a known user, or may not access the assets the flow writes"}}, "description": "Delete a flex automation", "operationId": "delete_flex_automation_resource", "parameters": [{"name": "flex_automation_id", "in": "path", "required": true, "type": "string", "description": "UUID of the flex automation", "format": "uuid"}], "tags": ["EEP API"]}, "get": {"responses": {"404": {"description": "No flex automation has that id"}, "401": {"description": "The caller is not a known user, or may not access the assets the flow writes"}}, "description": "Get a flex automation", "operationId": "get_flex_automation_resource", "parameters": [{"name": "flex_automation_id", "in": "path", "required": true, "type": "string", "description": "UUID of the flex automation", "format": "uuid"}], "tags": ["EEP API"]}}, "/api/v0.2/flex_potential_flows": {"post": {"responses": {"409": {"description": "Another potential flow already serves the automation this one names"}, "404": {"description": "The payload carries an id that no flex potential flow has"}, "403": {"description": "The caller has read-only access, or the payload changes the read-only output node"}, "401": {"description": "The caller is not a known user, or may not access the assets the flow writes - stored or posted - or the automation it serves"}, "400": {"description": "The payload is not a valid flex potential flow"}}, "description": "Create or update a flex potential flow", "operationId": "post_flex_potential_flows_resource", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/FlexPotentialFlow"}}], "tags": ["EEP API"]}, "get": {"responses": {"401": {"description": "The caller is not a known user, or may not access the assets the flow writes"}, "400": {"description": "filterByBuildingId is missing"}}, "description": "Get flex potential flows", "operationId": "get_flex_potential_flows_resource", "parameters": [{"description": "Internal id of a building asset. Only flows belonging to that building are returned.", "name": "filterByBuildingId", "type": "string", "in": "query"}], "tags": ["EEP API"]}}, "/api/v0.2/flex_potential_flows/run": {"post": {"responses": {"403": {"description": "The caller has read-only access, or dryrun is not 1"}, "401": {"description": "The caller is not a known user, or may not access the assets the flow writes"}, "400": {"description": "The payload is not a valid flex potential flow"}}, "description": "Simulate a flex potential flow and return the results", "operationId": "post_live_flex_potential_flow", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/FlexPotentialFlow"}}, {"description": "Unix time in milliseconds.", "name": "start", "type": "string", "in": "query"}, {"description": "Unix time in milliseconds. May be in the future.", "name": "end", "type": "string", "in": "query"}, {"description": "Must be 1. A flex potential flow is only written by the scheduled job.", "name": "dryrun", "type": "string", "in": "query"}], "tags": ["EEP API"]}}, "/api/v0.2/flex_potential_flows/{flex_potential_flow_id}": {"get": {"responses": {"404": {"description": "No flex potential flow has that id"}, "401": {"description": "The caller is not a known user, or may not access the assets the flow writes"}}, "description": "Get a flex potential flow", "operationId": "get_flex_potential_flow_resource", "parameters": [{"name": "flex_potential_flow_id", "in": "path", "required": true, "type": "string", "description": "UUID of the flex potential flow", "format": "uuid"}], "tags": ["EEP API"]}}, "/api/v0.2/holidays": {"get": {"responses": {"200": {"description": "Success"}}, "description": "Get holidays that are supported by calendars", "operationId": "get_calendar_holidays", "parameters": [{"in": "query", "description": "Start time in milliseconds since epoch", "example": 1676332800000, "name": "start", "type": "string"}, {"in": "query", "description": "End time in milliseconds since epoch", "example": 1676419199000, "name": "end", "type": "string"}], "tags": ["EEP API"]}}, "/api/v0.2/login/status": {"get": {"responses": {"200": {"description": "Success"}}, "operationId": "get_login_status", "tags": ["EEP API"]}}, "/api/v0.2/notes": {"post": {"responses": {"200": {"description": "Success"}}, "description": "Create a new Note", "operationId": "post_create_note", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/Note"}}], "tags": ["EEP API"]}}, "/api/v0.2/notes/{note_id}": {"parameters": [{"name": "note_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success"}}, "description": "Edit a Note", "operationId": "post_edit_note", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/Note"}}], "tags": ["EEP API"]}, "delete": {"responses": {"200": {"description": "Success"}}, "description": "Delete a note", "operationId": "delete_edit_note", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DeleteNote"}}], "tags": ["EEP API"]}}, "/api/v0.2/org": {"get": {"responses": {"200": {"description": "Success"}}, "operationId": "get_organization_list_all", "tags": ["EEP API"]}}, "/api/v0.2/org/{org_name}": {"parameters": [{"name": "org_name", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success"}}, "description": "Get a specific organization\nExample: Europris", "operationId": "get_users", "tags": ["EEP API"]}}, "/api/v0.2/owners/list": {"get": {"responses": {"200": {"description": "Success"}}, "operationId": "get_organization_list_all", "tags": ["EEP API"]}}, "/api/v0.2/physical_building/area": {"post": {"responses": {"200": {"description": "Success"}}, "description": "Get the total area for a building. The total will be calculated from the sub buildings area\nEx. [AH_1366_Fornebuveien_50]\nIf the calculated area is wrong, it can be corrected in each sub building\nTo get area for a specific sub building ex. [AH_1366_Fornebuveien_50+FV50]\nIf the calculated area is wrong, it can be corrected in each sub building\ncalculated_area is the area set from floor plan (Information only, and should not be used)\ncalculated_corrected_area is set from EEP API (Information only, and should not be used)\narea is the value to use (Can either come from calculated or be set directly from EEP API )", "operationId": "post_get_physical_building_area", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PhysicalBuildingArea"}}], "tags": ["EEP API"]}}, "/api/v0.2/physical_building/room/bulk_update": {"post": {"responses": {"200": {"description": "Success"}}, "description": "Bulk updates the physical buildings rooms with new names, description, type or area\nExample of a room external_id: AH_1366_Fornebuveien_50+FV50=200.001-FR001", "operationId": "post_physical_building_bulk_update", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PhysicalBuildingBulkUpdate"}}], "tags": ["EEP API"]}}, "/api/v0.2/physical_building/room/types": {"get": {"responses": {"200": {"description": "Success"}}, "description": "Get all valid room types", "operationId": "get_physical_building_types", "tags": ["EEP API"]}}, "/api/v0.2/physical_building/{external_id}/area": {"parameters": [{"name": "external_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success"}}, "description": "Ex. AH_1366_Fornebuveien_50+FV50 and {'area': 5000}\nwill correct the area for sub building FV50.\nEx. AH_1366_Fornebuveien_50 and {'area': 5500}\nwill correct the are for the building\nTo remove the corrected value, send payload: {'area': 0.0} or empty payload", "operationId": "post_update_physical_building", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PhysicalbuildingUpdate"}}], "tags": ["EEP API"]}}, "/api/v0.2/physical_building/{external_id}/room": {"parameters": [{"name": "external_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success"}}, "description": "Updates the physical buildings rooms with new names, description or type\nExample of a room external_id: AH_1366_Fornebuveien_50+FV50=200.001-FR001", "operationId": "post_update_physical_building_room", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PhysicalRoomUpdate"}}], "tags": ["EEP API"]}}, "/api/v0.2/reference_specific_energy_consumption": {"get": {"responses": {"200": {"description": "Success"}}, "description": "Get complete list of building category with corresponding sub-category", "operationId": "get_building_types_resource", "tags": ["EEP API"]}}, "/api/v0.2/reference_specific_energy_consumption/{building_category}": {"parameters": [{"name": "building_category", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success"}}, "description": "Get data for specific building category and it's sub categories.The included fields are: category: str, no_buildings: int, area: int , specific_energy_consumption_mean: int, specific_energy_consumption_min: int, specific_energy_consumption_max: int, specific_energy_consumption_median: int,sub_categories: list", "operationId": "get_building_type_resource", "tags": ["EEP API"]}}, "/api/v0.2/reference_specific_energy_consumption/{building_category}/{sub_category}": {"parameters": [{"name": "building_category", "in": "path", "required": true, "type": "string"}, {"name": "sub_category", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success"}}, "description": "Get data for a specific sub-categoryThe included fields are: category: str, no_buildings: int, area: int , specific_energy_consumption_mean: int,", "operationId": "get_building_sub_type_resource", "tags": ["EEP API"]}}, "/api/v0.2/site_map": {"get": {"responses": {"200": {"description": "Success"}}, "operationId": "get_site_map", "tags": ["EEP API"]}}, "/api/v0.2/units": {"get": {"responses": {"200": {"description": "Success"}}, "description": "Get a list of supported unit names for timeseries", "operationId": "get_unit_get", "tags": ["EEP API"]}}, "/api/v0.2/users/create": {"post": {"responses": {"200": {"description": "Success"}}, "operationId": "post_users_create", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/User"}}], "tags": ["EEP API"]}}, "/api/v0.2/users/delete": {"post": {"responses": {"200": {"description": "Success"}}, "operationId": "post_users_delete", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/Email"}}], "tags": ["EEP API"]}}, "/api/v0.2/users/list": {"get": {"responses": {"200": {"description": "Success"}}, "operationId": "get_users_list", "tags": ["EEP API"]}}, "/api/v0.2/users/update": {"post": {"responses": {"200": {"description": "Success"}}, "operationId": "post_users_create", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/User"}}], "tags": ["EEP API"]}}, "/api/v0.2/users/{email}": {"parameters": [{"name": "email", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success"}}, "description": "Get user", "operationId": "get_users_email", "tags": ["EEP API"]}}, "/api/v0.2/waste/data_missing": {"post": {"responses": {"200": {"description": "Success"}}, "description": "Retrieve non-present waste data for given building_id in selected period.return: {'missing_waste_data': [{'year': str, 'month': str}, {..}], 'error': str | None}", "operationId": "post_waste_data_missing", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/WasteDataMissing"}}], "tags": ["EEP API"]}}}, "info": {"title": "API", "version": "1.0"}, "produces": ["application/json"], "consumes": ["application/json"], "tags": [{"name": "EEP API", "description": "v0.3.1-3743-ge9b7a4575 - Support APIs for Properate applications"}], "definitions": {"LabelUpdate": {"properties": {"externalId": {"type": "string"}, "label": {"type": "string"}}, "type": "object"}, "User": {"properties": {"email": {"type": "string"}, "asset_external_ids": {"type": "array", "items": {"type": "string", "description": "A list of root asset external IDs of buildings to give the user access to"}}, "owner": {"type": "string"}, "org_list": {"type": "array", "items": {"type": "string", "description": "A list of org names to give the user access to (multi-org); mutually exclusive with owner"}}, "admin": {"type": "boolean", "description": "(deprecated, will be removed)", "default": false}, "phone_number": {"type": "string", "description": "Phone numer"}, "access_class": {"type": "string", "description": "Defines default features enabled for the user,\n                                                accepted values 'viewer|owner|user|super|admin|basic|no_access' ", "example": "viewer"}, "local_login": {"type": "string", "description": "Leave this parameter out if no change is desired.\n                        If set to 'enable', an email with a link to (re)set a local password\n                        will be sent to the email address of the user. If set to 'disable', the\n                        local credentials (if any) for this user will be deleted.", "example": "enable"}, "aux_roles": {"type": "array", "description": "A list of auxiliary roles for the user,\n                                           accepted values 'tapp' ", "example": ["tapp"], "items": {"type": "string"}}}, "type": "object"}, "Email": {"properties": {"email": {"type": "string"}}, "type": "object"}, "FlexAutomation": {"required": ["building_id", "calculation_flow", "metadata", "name"], "properties": {"id": {"type": "string", "description": "Omit to create, provide to update."}, "name": {"type": "string", "example": "5.etg, 50 % varme av kantine"}, "description": {"type": "string", "example": ""}, "building_id": {"type": "integer", "example": 1366}, "type": {"type": "string", "description": "Optional - the route implies it.", "example": "flexAutomation"}, "calculation_flow": {"type": "object", "example": {"nodes": [], "edges": [], "viewport": {"x": 0, "y": 0, "zoom": 1}}}, "metadata": {"$ref": "#/definitions/FlexAutomationMetadata"}}, "type": "object"}, "FlexAutomationMetadata": {"required": ["activation_external_id", "potential", "priority"], "properties": {"priority": {"type": "integer", "description": "Impact severity: 1-33 low, 34-66 medium, 67-100 high", "example": 20}, "available_for_flexing": {"type": "boolean", "example": true}, "potential": {"type": "object", "description": "How much can be offered, and with what timing.", "example": {"max_kW": 5, "ramp_up_sec": 60, "buffer_sec": 30, "max_duration_sec": 3600, "ramp_down_sec": 0}}, "activation_external_id": {"type": "string", "description": "External id of the timeseries holding the activation percentage.", "example": "TS_1366_Fornebuveien_50+Common=000.000-SX013"}, "activation": {"type": "object", "description": "The ordered activation window, or null when none is ordered. Replacing a running one is rejected with 409 - clear it first."}}, "type": "object"}, "FlexPotentialFlow": {"required": ["building_id", "calculation_flow", "metadata", "name"], "properties": {"id": {"type": "string", "description": "Omit to create, provide to update."}, "name": {"type": "string", "example": "Flex Potential ventilation"}, "description": {"type": "string", "example": ""}, "building_id": {"type": "integer", "example": 1366}, "type": {"type": "string", "description": "Optional - the route implies it.", "example": "flexPotential"}, "calculation_flow": {"type": "object", "example": {"nodes": [], "edges": [], "viewport": {"x": 0, "y": 0, "zoom": 1}}}, "metadata": {"$ref": "#/definitions/FlexPotentialFlowMetadata"}}, "type": "object"}, "FlexPotentialFlowMetadata": {"required": ["flex_automation_id"], "properties": {"flex_automation_id": {"type": "string", "description": "The flex automation this flow supplies the amount for. Required: a potential flow is created with an automation and deleted with it.", "example": "1f2e3d4c-5b6a-7890-abcd-ef1234567890"}}, "type": "object"}, "WasteDataMissing": {"required": ["building_id", "period_end", "period_start"], "properties": {"building_id": {"type": "integer", "description": "Building_id for the building (int)"}, "period_start": {"type": "integer", "description": "Timestamp of period start"}, "period_end": {"type": "integer", "description": "Timestamp of period end"}, "tz": {"type": "string", "description": "Time zone information for start, end."}}, "type": "object"}, "PhysicalbuildingUpdate": {"properties": {"area": {"type": "number", "default": 0.0}}, "type": "object"}, "PhysicalBuildingArea": {"required": ["external_ids"], "properties": {"external_ids": {"type": "array", "items": {"type": "string", "description": "A list of root asset external IDs"}}}, "type": "object"}, "PhysicalRoomUpdate": {"properties": {"description": {"type": "string", "description": "majestic hall located in Asgard"}, "name": {"type": "string", "description": "Valhalla"}, "room_type": {"type": "string"}}, "type": "object"}, "PhysicalBuildingBulkUpdate": {"required": ["root_external_id"], "properties": {"root_external_id": {"type": "string"}, "rooms": {"type": "array", "items": {"$ref": "#/definitions/PhysicalBuildingItem"}}}, "type": "object"}, "PhysicalBuildingItem": {"required": ["external_id"], "properties": {"external_id": {"type": "string"}, "area": {"type": "number"}, "name": {"type": "string", "description": "Valhalla"}, "type": {"type": "string"}, "desc": {"type": "string", "description": "majestic hall located in Asgard"}}, "type": "object"}, "BuildingHide": {"properties": {"externalId": {"type": "string"}, "hide": {"type": "boolean", "default": true}}, "type": "object"}, "FOM": {"properties": {"external_id": {"type": "string"}, "description": {"type": "string"}, "building_id": {"type": "string"}, "sub_building": {"type": "string"}, "component_type": {"type": "string"}, "component_seq_num": {"type": "string"}, "system": {"type": "string"}, "component_information": {"type": "string"}, "alt_component_tag": {"type": "string"}, "delivery_date": {"type": "integer"}, "claim_date": {"type": "integer"}, "end_of_life_date": {"type": "integer"}, "product_code": {"type": "string"}, "contractor": {"type": "string"}, "supplier": {"type": "string"}, "manufacturer": {"type": "string"}, "placement": {"type": "string"}}, "type": "object"}, "Note": {"required": ["asset_ids", "content", "data_set_id", "end_time", "level", "source", "start_time"], "properties": {"data_set_id": {"type": "integer", "description": "The dataset for the Note (associated building)"}, "content": {"type": "string", "description": "The content of this note"}, "sourceId": {"type": "string", "description": "Entity id of the source of the note"}, "start_time": {"type": "integer", "description": "Start time for the note in ms since Unix epoch"}, "end_time": {"type": "integer", "description": "End time for the note in ms since Unix epoch"}, "asset_ids": {"type": "array", "description": "List of asset ids the note relates to", "items": {"type": "integer"}}, "level": {"type": "string", "description": "The level of the note", "example": "WARNING"}, "source": {"type": "string", "description": "The origin of this note. A string stating the section of Properate where this note was added", "example": "WEB_ALARMS"}}, "type": "object"}, "DeleteNote": {"required": ["data_set_id"], "properties": {"data_set_id": {"type": "integer", "description": "The dataset for the Note (associated building)"}}, "type": "object"}}, "responses": {"ParseError": {"description": "When a mask can't be parsed"}, "MaskError": {"description": "When any error occurs on mask"}, "ValidationError": {}, "InvalidCalculationFlow": {}, "LockedNodeChanged": {}, "InvalidRunWindow": {}, "WriteRunNotAllowed": {}, "CalculationFlowNotFound": {}, "ActivationInFlight": {}, "PotentialFlowAlreadyLinked": {}, "PotentialFlowStillLinked": {}}}
