{"swagger": "2.0", "info": {"title": "Snippets API", "description": "Test description", "termsOfService": "https://www.google.com/policies/terms/", "contact": {"email": "contact@snippets.local"}, "license": {"name": "BSD License"}, "version": "v1"}, "host": "api.zeia.com.pe", "schemes": ["http"], "basePath": "/", "consumes": ["application/json"], "produces": ["application/json"], "securityDefinitions": {"Basic": {"type": "basic"}}, "security": [{"Basic": []}], "paths": {"/account/api/create/": {"post": {"operationId": "account_api_create_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CreateUser"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/CreateUser"}}}, "tags": ["account"]}, "parameters": []}, "/account/api/detail/": {"get": {"operationId": "account_api_detail_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RetrieveUser"}}}, "tags": ["account"]}, "put": {"operationId": "account_api_detail_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/RetrieveUser"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RetrieveUser"}}}, "tags": ["account"]}, "patch": {"operationId": "account_api_detail_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/RetrieveUser"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RetrieveUser"}}}, "tags": ["account"]}, "delete": {"operationId": "account_api_detail_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}}, "tags": ["account"]}, "parameters": []}, "/account/api/list/": {"get": {"operationId": "account_api_list_list", "description": "", "parameters": [{"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/RetrieveUser"}}}}}}, "tags": ["account"]}, "parameters": []}, "/account/api/token/": {"post": {"operationId": "account_api_token_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Login"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/Login"}}}, "tags": ["account"]}, "parameters": []}, "/account/api/token/ambiental": {"post": {"operationId": "account_api_token_ambiental_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/LoginAmbiental"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/LoginAmbiental"}}}, "tags": ["account"]}, "parameters": []}, "/alerts/api/ambiental/point/{point_id}/alert/{alert_id}/comments": {"get": {"operationId": "alerts_api_ambiental_point_alert_comments_list", "description": "", "parameters": [{"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/CommentAlert"}}}}}}, "tags": ["alerts"]}, "post": {"operationId": "alerts_api_ambiental_point_alert_comments_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CommentAlert"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/CommentAlert"}}}, "tags": ["alerts"]}, "parameters": [{"name": "alert_id", "in": "path", "required": true, "type": "string"}, {"name": "point_id", "in": "path", "required": true, "type": "string"}]}, "/alerts/api/ambiental/point/{point_id}/alerts/": {"get": {"operationId": "alerts_api_ambiental_point_alerts_list", "description": "", "parameters": [{"name": "indicator", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "unit", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "level", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "resolved", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "page_size", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/LimitAlert"}}}}}}, "tags": ["alerts"]}, "parameters": [{"name": "point_id", "in": "path", "required": true, "type": "string"}]}, "/alerts/api/ambiental/point/{point_id}/report/": {"get": {"operationId": "alerts_api_ambiental_point_report_list", "description": "", "parameters": [{"name": "indicator", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "unit", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "level", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "resolved", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["alerts"]}, "parameters": [{"name": "point_id", "in": "path", "required": true, "type": "string"}]}, "/alerts/api/room/{room_id}/alert/{alert_id}/comments": {"get": {"operationId": "alerts_api_room_alert_comments_list", "description": "", "parameters": [{"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/CommentAlert"}}}}}}, "tags": ["alerts"]}, "post": {"operationId": "alerts_api_room_alert_comments_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CommentAlert"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/CommentAlert"}}}, "tags": ["alerts"]}, "parameters": [{"name": "alert_id", "in": "path", "required": true, "type": "string"}, {"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/alerts/api/room/{room_id}/alerts/": {"get": {"operationId": "alerts_api_room_alerts_list", "description": "", "parameters": [{"name": "indicator", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "unit", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "level", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "resolved", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "page_size", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/LimitAlert"}}}}}}, "tags": ["alerts"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/alerts/api/room/{room_id}/report/": {"get": {"operationId": "alerts_api_room_report_list", "description": "", "parameters": [{"name": "indicator", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "unit", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "level", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "resolved", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["alerts"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/alerts/api/rooms/report/": {"get": {"operationId": "alerts_api_rooms_report_list", "description": "", "parameters": [{"name": "indicator", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "unit", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "level", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "resolved", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["alerts"]}, "parameters": []}, "/control-devices/data/": {"post": {"operationId": "control-devices_data_create", "description": "API view to create control device data.\nThis view handles the creation of control device data and updates the state\nof the associated control device. It also calculates and updates the time\nduration between state changes.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CreateControlDeviceData"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/CreateControlDeviceData"}}}, "tags": ["control-devices"]}, "parameters": []}, "/enterprise/api/ambiental/enterprise/basic/headquearter-list/": {"get": {"operationId": "enterprise_api_ambiental_enterprise_basic_headquearter-list_list", "description": "", "parameters": [{"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/HeadquarterSimpleAmbiental"}}}}}}, "tags": ["enterprise"]}, "parameters": []}, "/enterprise/api/ambiental/enterprise/basic/point-list/": {"get": {"operationId": "enterprise_api_ambiental_enterprise_basic_point-list_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/MeasurePointSimple"}}}}, "tags": ["enterprise"]}, "parameters": []}, "/enterprise/api/ambiental/enterprise/point-list/": {"get": {"operationId": "enterprise_api_ambiental_enterprise_point-list_list", "description": "", "parameters": [{"name": "search", "in": "query", "description": "A search term.", "required": false, "type": "string"}, {"name": "headquarter", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "status", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "enterprise", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/MeasurePointList"}}}}}}, "tags": ["enterprise"]}, "parameters": []}, "/enterprise/api/ambiental/headquarter/{headquarter_id}/": {"get": {"operationId": "enterprise_api_ambiental_headquarter_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HeadquarterAmbiental"}}}, "tags": ["enterprise"]}, "parameters": [{"name": "headquarter_id", "in": "path", "required": true, "type": "string"}]}, "/enterprise/api/ambiental/headquater/{headquarter_id}/basic/point-list/": {"get": {"operationId": "enterprise_api_ambiental_headquater_basic_point-list_list", "description": "", "parameters": [{"name": "headquarter", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "status", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "enterprise", "in": "query", "description": "", "required": false, "type": "number"}], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/MeasurePointSimple"}}}}, "tags": ["enterprise"]}, "parameters": [{"name": "headquarter_id", "in": "path", "required": true, "type": "string"}]}, "/enterprise/api/ambiental/point/{point_id}/": {"get": {"operationId": "enterprise_api_ambiental_point_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MeasurePointDetail"}}}, "tags": ["enterprise"]}, "parameters": [{"name": "point_id", "in": "path", "required": true, "type": "string"}]}, "/enterprise/api/enterprise/basic/headquearter-list/": {"get": {"operationId": "enterprise_api_enterprise_basic_headquearter-list_list", "description": "", "parameters": [{"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/HeadquarterSimple"}}}}}}, "tags": ["enterprise"]}, "parameters": []}, "/enterprise/api/enterprise/basic/room-list/": {"get": {"operationId": "enterprise_api_enterprise_basic_room-list_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/RoomSimple"}}}}, "tags": ["enterprise"]}, "parameters": []}, "/enterprise/api/enterprise/detail/": {"get": {"operationId": "enterprise_api_enterprise_detail_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Enterprise"}}}, "tags": ["enterprise"]}, "parameters": []}, "/enterprise/api/enterprise/list/": {"get": {"operationId": "enterprise_api_enterprise_list_list", "description": "", "parameters": [{"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/Enterprise"}}}}}}, "tags": ["enterprise"]}, "parameters": []}, "/enterprise/api/enterprise/room-list/": {"get": {"operationId": "enterprise_api_enterprise_room-list_list", "description": "", "parameters": [{"name": "search", "in": "query", "description": "A search term.", "required": false, "type": "string"}, {"name": "headquarter", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "status", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "enterprise", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/RoomListBattery"}}}}}}, "tags": ["enterprise"]}, "parameters": []}, "/enterprise/api/enterprise/room-list/{room_id}/": {"get": {"operationId": "enterprise_api_enterprise_room-list_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RoomList"}}}, "tags": ["enterprise"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/enterprise/api/headquarter/{headquarter_id}/": {"get": {"operationId": "enterprise_api_headquarter_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Headquarter"}}}, "tags": ["enterprise"]}, "parameters": [{"name": "headquarter_id", "in": "path", "required": true, "type": "string"}]}, "/enterprise/api/headquater/{headquarter_id}/basic/room-list/": {"get": {"operationId": "enterprise_api_headquater_basic_room-list_list", "description": "", "parameters": [{"name": "headquarter", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "status", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "enterprise", "in": "query", "description": "", "required": false, "type": "number"}], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/RoomSimple"}}}}, "tags": ["enterprise"]}, "parameters": [{"name": "headquarter_id", "in": "path", "required": true, "type": "string"}]}, "/enterprise/api/room/{room_id}/": {"get": {"operationId": "enterprise_api_room_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RoomDetail"}}}, "tags": ["enterprise"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/enterprises/control-devices/report-detail/{deviceId}/": {"get": {"operationId": "enterprises_control-devices_report-detail_read", "description": "API view to generate a detailed report of device on and off states.\nThis view allows authenticated users to retrieve a report of the on and off states\nof a specific device, identified by its `deviceId`. The report is generated in an\nExcel file format and includes the following columns:\n- Fecha: The date when the state was recorded.\n- Hora: The time when the state was recorded.\n- Estatus: The state of the device ('Encendido' or 'Apagado').\n- Duraci\u00f3n: The duration of the state in minutes.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["enterprises"]}, "parameters": [{"name": "deviceId", "in": "path", "required": true, "type": "string"}]}, "/enterprises/control-devices/report/{deviceId}/": {"get": {"operationId": "enterprises_control-devices_report_read", "description": "API view to generate a report of device on and off times.\nThis view allows authenticated users to retrieve a report of the total time \nand number of times a device has been turned on and off. The report is \ngenerated in an Excel file and returned as a downloadable response.", "parameters": [], "responses": {"200": {"description": ""}}, "tags": ["enterprises"]}, "parameters": [{"name": "deviceId", "in": "path", "required": true, "type": "string"}]}, "/enterprises/control-devices/{control_device_id}/action/": {"post": {"operationId": "enterprises_control-devices_action_create", "description": "API view to change the state of a control device.\nThis view handles POST requests to change the state of a control device. It ensures that the control device is active,\nvalidates the request data, and sends a request to the Home Assistant webhook to change the state of the device.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ChangeStateControlDevice"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/ChangeStateControlDevice"}}}, "tags": ["enterprises"]}, "parameters": [{"name": "control_device_id", "in": "path", "required": true, "type": "string"}]}, "/enterprises/control-devices/{control_device_id}/data/": {"get": {"operationId": "enterprises_control-devices_data_list", "description": "API view to list data by control device.\nThis view inherits from ListAPIView and provides a list of data entries\nfiltered by the control device ID passed in the URL.", "parameters": [{"name": "state", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "weekday", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "last_days", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ControlDeviceData"}}}}}}, "tags": ["enterprises"]}, "parameters": [{"name": "control_device_id", "in": "path", "required": true, "type": "string"}]}, "/enterprises/control-devices/{id}/": {"get": {"operationId": "enterprises_control-devices_read", "description": "RetrieveControlDeviceAPIView is a view that handles the retrieval of a single ControlDevice instance.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RetrieveControlDevice"}}}, "tags": ["enterprises"]}, "parameters": [{"name": "id", "in": "path", "description": "A unique integer value identifying this control device.", "required": true, "type": "integer"}]}, "/enterprises/{enterprise_id}/control-devices/": {"get": {"operationId": "enterprises_control-devices_list", "description": "ListControlDeviceAPIView is a view that provides a list of control devices filtered by enterprise ID.", "parameters": [{"name": "state", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "room", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "controlled_device", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "page_size", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ControlDevice"}}}}}}, "tags": ["enterprises"]}, "parameters": [{"name": "enterprise_id", "in": "path", "required": true, "type": "string"}]}, "/enterprises/{enterprise_id}/controlled-devices/": {"get": {"operationId": "enterprises_controlled-devices_list", "summary": "API view to list all controlled devices.", "description": "This view inherits from ListAPIView and provides a read-only endpoint to retrieve\na list of all ControlledDevice instances. The queryset includes all ControlledDevice\nobjects, and the data is serialized using the ControlledDeviceSerializer. Access to\nthis view is restricted to authenticated users.", "parameters": [{"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ControlledDevice"}}}}}}, "tags": ["enterprises"]}, "parameters": [{"name": "enterprise_id", "in": "path", "required": true, "type": "string"}]}, "/nodered/control-devices/hook/": {"post": {"operationId": "nodered_control-devices_hook_create", "description": "API view to ensure the state of a control device.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EnsureControlDeviceState"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/EnsureControlDeviceState"}}}, "tags": ["nodered"]}, "parameters": []}, "/readings/api/ambiental/enterprise/display/metrics/": {"get": {"operationId": "readings_api_ambiental_enterprise_display_metrics_list", "description": "", "parameters": [{"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": []}, "/readings/api/ambiental/gateway": {"post": {"operationId": "readings_api_ambiental_gateway_create", "description": "", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["readings"]}, "parameters": []}, "/readings/api/ambiental/point/{point_id}/general/last": {"get": {"operationId": "readings_api_ambiental_point_general_last_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/ReadingAmbientalLastData"}}}}, "tags": ["readings"]}, "parameters": [{"name": "point_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/ambiental/point/{point_id}/indicator": {"get": {"operationId": "readings_api_ambiental_point_indicator_list", "description": "", "parameters": [{"name": "indicator", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "unit", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "status", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "page_size", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ReadingAmbiental"}}}}}}, "tags": ["readings"]}, "parameters": [{"name": "point_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/ambiental/point/{point_id}/indicator/graph": {"get": {"operationId": "readings_api_ambiental_point_indicator_graph_list", "description": "", "parameters": [{"name": "indicator", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "unit", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "status", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": [{"name": "point_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/ambiental/point/{point_id}/indicator/metrics/high": {"get": {"operationId": "readings_api_ambiental_point_indicator_metrics_high_list", "description": "", "parameters": [{"name": "indicator", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "unit", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "status", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": [{"name": "point_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/ambiental/point/{point_id}/indicator/metrics/today": {"get": {"operationId": "readings_api_ambiental_point_indicator_metrics_today_list", "description": "", "parameters": [{"name": "indicator", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "unit", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "status", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": [{"name": "point_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/ambiental/point/{point_id}/indicator/report": {"get": {"operationId": "readings_api_ambiental_point_indicator_report_list", "description": "", "parameters": [{"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": [{"name": "point_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/available-indicators": {"get": {"operationId": "readings_api_available-indicators_list", "description": "", "parameters": [{"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": []}, "/readings/api/enterprise/display/metrics/": {"get": {"operationId": "readings_api_enterprise_display_metrics_list", "description": "", "parameters": [{"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": []}, "/readings/api/gateway": {"post": {"operationId": "readings_api_gateway_create", "description": "", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["readings"]}, "parameters": []}, "/readings/api/headquarter/{headquarter_id}/room/indicator/report/all-rooms": {"get": {"operationId": "readings_api_headquarter_room_indicator_report_all-rooms_list", "description": "", "parameters": [{"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "last_days", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": [{"name": "headquarter_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/room/{room_id}/covid/baselines/": {"get": {"operationId": "readings_api_room_covid_baselines_list", "description": "", "parameters": [{"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "last_days", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "weekday", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "time", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/room/{room_id}/covid/metrics/detail": {"get": {"operationId": "readings_api_room_covid_metrics_detail_list", "description": "", "parameters": [{"name": "date", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "last_days", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "hour", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "base_line", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "covid_level", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/room/{room_id}/covid/metrics/history": {"get": {"operationId": "readings_api_room_covid_metrics_history_list", "description": "", "parameters": [{"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "last_days", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "weekday", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "time", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/room/{room_id}/covid/metrics/new-detail/": {"get": {"operationId": "readings_api_room_covid_metrics_new-detail_list", "description": "", "parameters": [{"name": "date", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "last_days", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "hour", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "base_line", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "covid_level", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "page_size", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/room/{room_id}/covid/metrics/new-detail/risks/": {"get": {"operationId": "readings_api_room_covid_metrics_new-detail_risks_list", "description": "", "parameters": [{"name": "date", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "last_days", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "hour", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "base_line", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "covid_level", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "page_size", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/room/{room_id}/covid/metrics/new-history/": {"get": {"operationId": "readings_api_room_covid_metrics_new-history_list", "description": "", "parameters": [{"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "last_days", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "weekday", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "time", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/room/{room_id}/covid/metrics/new-history/report/": {"get": {"operationId": "readings_api_room_covid_metrics_new-history_report_list", "description": "", "parameters": [{"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "last_days", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "weekday", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "time", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/room/{room_id}/covid/report": {"get": {"operationId": "readings_api_room_covid_report_list", "description": "", "parameters": [{"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "last_days", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "weekday", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "time", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/room/{room_id}/general/last": {"get": {"operationId": "readings_api_room_general_last_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/ReadingLastData"}}}}, "tags": ["readings"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/room/{room_id}/indicator": {"get": {"operationId": "readings_api_room_indicator_list", "description": "", "parameters": [{"name": "indicator", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "unit", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "status", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "weekday", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "last_days", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "page_size", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/Reading"}}}}}}, "tags": ["readings"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/room/{room_id}/indicator/graph": {"get": {"operationId": "readings_api_room_indicator_graph_list", "description": "", "parameters": [{"name": "indicator", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "unit", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "status", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "weekday", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "last_days", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/room/{room_id}/indicator/graph/mean": {"get": {"operationId": "readings_api_room_indicator_graph_mean_list", "description": "", "parameters": [{"name": "indicator", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "unit", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "status", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "weekday", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "last_days", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/room/{room_id}/indicator/metrics/high": {"get": {"operationId": "readings_api_room_indicator_metrics_high_list", "description": "", "parameters": [{"name": "indicator", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "unit", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "status", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "weekday", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "last_days", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/room/{room_id}/indicator/metrics/high/history": {"get": {"operationId": "readings_api_room_indicator_metrics_high_history_list", "description": "", "parameters": [{"name": "indicator", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "unit", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "status", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "weekday", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "last_days", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/room/{room_id}/indicator/metrics/low/history": {"get": {"operationId": "readings_api_room_indicator_metrics_low_history_list", "description": "", "parameters": [{"name": "indicator", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "unit", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "status", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "weekday", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "last_days", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/room/{room_id}/indicator/metrics/today": {"get": {"operationId": "readings_api_room_indicator_metrics_today_list", "description": "", "parameters": [{"name": "indicator", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "unit", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "status", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "weekday", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "last_days", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/room/{room_id}/indicator/report": {"get": {"operationId": "readings_api_room_indicator_report_list", "description": "", "parameters": [{"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "last_days", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/readings/api/rooms/indicators/graphs": {"get": {"operationId": "readings_api_rooms_indicators_graphs_list", "description": "", "parameters": [{"name": "indicator", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "unit", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "status", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "weekday", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "last_days", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": []}, "/readings/api/rooms/indicators/metrics/high/history": {"get": {"operationId": "readings_api_rooms_indicators_metrics_high_history_list", "description": "", "parameters": [{"name": "indicator", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "unit", "in": "query", "description": "", "required": true, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_before", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "hour_after", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "status", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "weekday", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "last_days", "in": "query", "description": "", "required": false, "type": "number"}, {"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "page_size", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": ""}}, "tags": ["readings"]}, "parameters": []}, "/reports/api/enterprises/{enterprise_id}/": {"get": {"operationId": "reports_api_enterprises_read", "description": "", "parameters": [{"name": "search", "in": "query", "description": "A search term.", "required": false, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "category", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ReportDocumentEnterprise"}}}}}}, "tags": ["reports"]}, "parameters": [{"name": "enterprise_id", "in": "path", "required": true, "type": "string"}]}, "/reports/api/room/{room_id}/": {"get": {"operationId": "reports_api_room_read", "description": "", "parameters": [{"name": "search", "in": "query", "description": "A search term.", "required": false, "type": "string"}, {"name": "date", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "category", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "offset", "in": "query", "description": "The initial index from which to return the results.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ReportDocumentRoom"}}}}}}, "tags": ["reports"]}, "parameters": [{"name": "room_id", "in": "path", "required": true, "type": "string"}]}, "/sensors/api/gateway/test": {"post": {"operationId": "sensors_api_gateway_test_create", "description": "", "parameters": [], "responses": {"201": {"description": ""}}, "tags": ["sensors"]}, "parameters": []}}, "definitions": {"CreateUser": {"required": ["email", "password", "first_name", "last_name"], "type": "object", "properties": {"email": {"title": "Correo electronico", "type": "string", "format": "email", "maxLength": 254, "minLength": 1}, "password": {"title": "Contrase\u00f1a", "type": "string", "maxLength": 128, "minLength": 1}, "first_name": {"title": "Nombres", "type": "string", "maxLength": 100, "minLength": 1}, "last_name": {"title": "Apellidos", "type": "string", "maxLength": 100, "minLength": 1}, "gender": {"title": "Genero", "type": "string", "enum": ["HOMBRE", "MUJER"], "x-nullable": true}, "age": {"title": "Edad", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "phone": {"title": "Telefono", "type": "string", "maxLength": 30, "x-nullable": true}, "dni": {"title": "Dni", "type": "string", "maxLength": 8, "x-nullable": true}, "birthday": {"title": "Fecha de nacimiento", "type": "string", "format": "date", "x-nullable": true}, "enterprise": {"title": "Empresa", "type": "integer", "x-nullable": true}, "headquarter": {"title": "Sede de empresa", "type": "integer", "x-nullable": true}, "admission_date": {"title": "Fecha de ingreso", "type": "string", "format": "date", "x-nullable": true}, "departure_date": {"title": "Fecha de salida", "type": "string", "format": "date", "x-nullable": true}}}, "RetrieveUser": {"required": ["first_name", "last_name", "name_enterprise"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "email": {"title": "Correo electronico", "type": "string", "format": "email", "readOnly": true, "minLength": 1}, "first_name": {"title": "Nombres", "type": "string", "maxLength": 100, "minLength": 1}, "last_name": {"title": "Apellidos", "type": "string", "maxLength": 100, "minLength": 1}, "phone": {"title": "Telefono", "type": "string", "maxLength": 30, "x-nullable": true}, "gender": {"title": "Genero", "type": "string", "enum": ["HOMBRE", "MUJER"], "x-nullable": true}, "photo": {"title": "Foto", "type": "string", "readOnly": true, "x-nullable": true, "format": "uri"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "modified_at": {"title": "Modified at", "type": "string", "format": "date-time", "readOnly": true}, "age": {"title": "Edad", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "birthday": {"title": "Fecha de nacimiento", "type": "string", "format": "date", "x-nullable": true}, "dni": {"title": "Dni", "type": "string", "maxLength": 8, "x-nullable": true}, "enterprise": {"title": "Empresa", "type": "integer", "x-nullable": true}, "headquarter": {"title": "Sede de empresa", "type": "integer", "x-nullable": true}, "admission_date": {"title": "Fecha de ingreso", "type": "string", "format": "date", "x-nullable": true}, "departure_date": {"title": "Fecha de salida", "type": "string", "format": "date", "x-nullable": true}, "is_enabled": {"title": "Habilitar Usuario", "type": "boolean"}, "name_enterprise": {"title": "Name enterprise", "type": "string", "minLength": 1}}}, "Login": {"required": ["email", "password"], "type": "object", "properties": {"email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "password": {"title": "Password", "type": "string", "minLength": 8}}}, "LoginAmbiental": {"required": ["email", "password"], "type": "object", "properties": {"email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "password": {"title": "Password", "type": "string", "minLength": 8}}}, "CommentAlert": {"required": ["content"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "email": {"title": "Email", "type": "string", "readOnly": true, "minLength": 1}, "content": {"title": "Content", "type": "string", "minLength": 1}}}, "LimitAlert": {"required": ["indicator", "value", "level"], "type": "object", "properties": {"created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "indicator": {"title": "Indicador", "type": "string", "maxLength": 15, "minLength": 1}, "unit": {"title": "Unidad", "type": "string", "maxLength": 15}, "value": {"title": "Valor", "type": "string", "maxLength": 10, "minLength": 1}, "level": {"title": "Level", "type": "string", "minLength": 1}, "resolved": {"title": "Resuelto", "type": "boolean"}}}, "CreateControlDeviceData": {"required": ["dev_uid"], "type": "object", "properties": {"voltage": {"title": "Voltage", "type": "number", "x-nullable": true}, "active_power": {"title": "Active power", "type": "number", "x-nullable": true}, "power_factor": {"title": "Power factor", "type": "number", "x-nullable": true}, "power_consumed": {"title": "Power consumed", "type": "number", "x-nullable": true}, "current": {"title": "Current", "type": "number", "x-nullable": true}, "state": {"title": "State", "type": "string", "enum": ["AO", "AF", "MO", "MF"]}, "dev_uid": {"title": "Dev uid", "type": "string", "minLength": 1}}}, "HeadquarterSimpleAmbiental": {"type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "name": {"title": "Nombre", "type": "string", "maxLength": 50, "minLength": 1, "x-nullable": true}}}, "MeasurePointSimple": {"required": ["name", "headquarter"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "name": {"title": "Nombre", "type": "string", "maxLength": 50, "minLength": 1}, "headquarter": {"$ref": "#/definitions/HeadquarterSimpleAmbiental"}}}, "AmbientalDeviceSimple": {"required": ["dev_eui", "type_sensor"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "dev_eui": {"title": "DevEUI", "type": "string", "maxLength": 16, "minLength": 1}, "type_sensor": {"title": "Tipo de sensor", "type": "string", "maxLength": 10, "minLength": 1}}}, "MeasurePointList": {"required": ["name", "status", "headquarter", "devices"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "name": {"title": "Nombre", "type": "string", "maxLength": 50, "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}, "headquarter": {"$ref": "#/definitions/HeadquarterSimpleAmbiental"}, "devices": {"type": "array", "items": {"$ref": "#/definitions/AmbientalDeviceSimple"}}, "report_link": {"title": "Report link", "type": "string", "format": "uri", "maxLength": 200, "x-nullable": true}}}, "Enterprise": {"required": ["first_room"], "type": "object", "properties": {"name": {"title": "Nombre", "type": "string", "maxLength": 50, "x-nullable": true}, "acronym": {"title": "Siglas", "type": "string", "maxLength": 3, "x-nullable": true}, "first_room": {"title": "First room", "type": "integer"}, "logo": {"title": "Logo", "type": "string", "readOnly": true, "x-nullable": true, "format": "uri"}, "background_color": {"title": "Background-color", "type": "string", "maxLength": 10, "x-nullable": true}}}, "HeadquarterAmbiental": {"required": ["enterprise"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "name": {"title": "Nombre", "type": "string", "maxLength": 50, "minLength": 1, "x-nullable": true}, "enterprise": {"$ref": "#/definitions/Enterprise"}}}, "IndicatorMeasurePoint": {"required": ["indicator", "unit"], "type": "object", "properties": {"indicator": {"title": "Indicator", "type": "string", "minLength": 1}, "unit": {"title": "Unit", "type": "string", "minLength": 1}}}, "MeasurePointDetail": {"required": ["name", "headquarter", "indicators_activated", "indicators_pollutants"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "name": {"title": "Nombre", "type": "string", "maxLength": 50, "minLength": 1}, "status": {"title": "Estado", "type": "string", "enum": ["GOOD", "MODERATE", "UNHEALTHY", "DANGEROUS", "CRITICAL", "TEMP_MAX", "TEMP_MIN", "HUMIDITY_MAX", "HUMIDITY_MIN"]}, "headquarter": {"$ref": "#/definitions/HeadquarterSimpleAmbiental"}, "indicators_activated": {"type": "array", "items": {"$ref": "#/definitions/IndicatorMeasurePoint"}}, "indicators_pollutants": {"type": "array", "items": {"$ref": "#/definitions/IndicatorMeasurePoint"}}}}, "HeadquarterSimple": {"type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "name": {"title": "Nombre", "type": "string", "maxLength": 50, "minLength": 1, "x-nullable": true}}}, "RoomSimple": {"required": ["name", "headquarter"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "name": {"title": "Nombre", "type": "string", "maxLength": 50, "minLength": 1}, "headquarter": {"$ref": "#/definitions/HeadquarterSimple"}, "is_activated": {"title": "Activada", "type": "boolean"}}}, "DeviceBattery": {"required": ["battery", "type_sensor"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "battery": {"title": "Battery", "type": "number"}, "type_sensor": {"title": "Tipo de sensor", "type": "string", "maxLength": 10, "minLength": 1}, "no_data_status": {"title": "Estado de datos", "type": "string", "enum": ["ok", "down", "reminder"]}}}, "RoomListBattery": {"required": ["name", "status", "headquarter", "devices"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "name": {"title": "Nombre", "type": "string", "maxLength": 50, "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}, "connection_status": {"title": "Connection status", "type": "string", "readOnly": true}, "headquarter": {"$ref": "#/definitions/HeadquarterSimple"}, "devices": {"type": "array", "items": {"$ref": "#/definitions/DeviceBattery"}}, "report_link": {"title": "Report link", "type": "string", "format": "uri", "maxLength": 200, "x-nullable": true}, "is_activated": {"title": "Activada", "type": "boolean"}, "has_reports": {"title": "Has reports", "type": "string", "readOnly": true}, "co2_monitoring_time": {"title": "Co2 monitoring time", "type": "string", "readOnly": true}}}, "DeviceSimple": {"required": ["dev_eui", "type_sensor"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "dev_eui": {"title": "DevEUI", "type": "string", "maxLength": 22, "minLength": 1}, "type_sensor": {"title": "Tipo de sensor", "type": "string", "maxLength": 10, "minLength": 1}, "no_data_status": {"title": "Estado de datos", "type": "string", "enum": ["ok", "down", "reminder"]}}}, "RoomList": {"required": ["name", "status", "headquarter", "devices"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "name": {"title": "Nombre", "type": "string", "maxLength": 50, "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}, "connection_status": {"title": "Connection status", "type": "string", "readOnly": true}, "headquarter": {"$ref": "#/definitions/HeadquarterSimple"}, "devices": {"type": "array", "items": {"$ref": "#/definitions/DeviceSimple"}}, "report_link": {"title": "Report link", "type": "string", "format": "uri", "maxLength": 200, "x-nullable": true}, "is_activated": {"title": "Activada", "type": "boolean"}, "has_reports": {"title": "Has reports", "type": "string", "readOnly": true}, "co2_monitoring_time": {"title": "Co2 monitoring time", "type": "string", "readOnly": true}}}, "Headquarter": {"required": ["enterprise"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "name": {"title": "Nombre", "type": "string", "maxLength": 50, "minLength": 1, "x-nullable": true}, "enterprise": {"$ref": "#/definitions/Enterprise"}}}, "RoomDetail": {"required": ["name", "status", "headquarter"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "name": {"title": "Nombre", "type": "string", "maxLength": 50, "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}, "connection_status": {"title": "Connection status", "type": "string", "readOnly": true}, "headquarter": {"$ref": "#/definitions/HeadquarterSimple"}, "devices": {"type": "array", "items": {"$ref": "#/definitions/DeviceSimple"}, "readOnly": true}, "indicators_activated": {"title": "Indicators activated", "type": "string", "readOnly": true}, "indicators_pollutants": {"title": "Indicators pollutants", "type": "string", "readOnly": true}, "is_activated": {"title": "Activada", "type": "boolean"}, "thresholds": {"title": "Thresholds", "type": "string", "readOnly": true}, "thresholds_filter": {"title": "Thresholds filter", "type": "string", "readOnly": true}}}, "ChangeStateControlDevice": {"required": ["state"], "type": "object", "properties": {"state": {"title": "State", "type": "string", "enum": ["MO", "MF"]}}}, "ControlDeviceData": {"type": "object", "properties": {"created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "state": {"title": "State", "type": "string", "enum": ["AO", "AF", "MO", "MF"]}, "time": {"title": "Time", "type": "number"}}}, "RetrieveControlDevice": {"type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "state": {"title": "State", "type": "string", "enum": ["AO", "AF", "MO", "MF"]}}}, "ControlledDevice": {"required": ["name"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 100, "minLength": 1}}}, "ControlDevice": {"required": ["room_name", "dev_uid", "name", "total_time_on", "total_times_on", "controlled_device"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "room_name": {"title": "Room name", "type": "string", "minLength": 1}, "dev_uid": {"title": "Dev uid", "type": "string", "maxLength": 24, "minLength": 1}, "name": {"title": "Name", "type": "string", "maxLength": 100, "minLength": 1}, "state": {"title": "State", "type": "string", "enum": ["AO", "AF", "MO", "MF"]}, "total_time_on": {"title": "Total time on", "type": "number"}, "total_times_on": {"title": "Total times on", "type": "integer"}, "controlled_device": {"$ref": "#/definitions/ControlledDevice"}}}, "EnsureControlDeviceState": {"required": ["state", "entity_id"], "type": "object", "properties": {"state": {"title": "State", "type": "string", "enum": ["MO", "MF", "AF", "AO"]}, "entity_id": {"title": "Entity id", "type": "string", "maxLength": 24, "minLength": 1}}}, "ReadingAmbientalLastData": {"required": ["indicator", "value", "unit"], "type": "object", "properties": {"created_at": {"title": "Fecha", "type": "string", "format": "date-time"}, "indicator": {"title": "Indicator", "type": "string", "minLength": 1}, "value": {"title": "Value", "type": "string", "maxLength": 10, "minLength": 1}, "unit": {"title": "Unit", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "readOnly": true}}}, "ReadingAmbiental": {"required": ["indicator", "value", "unit"], "type": "object", "properties": {"created_at": {"title": "Fecha", "type": "string", "format": "date-time"}, "indicator": {"title": "Indicator", "type": "string", "minLength": 1}, "value": {"title": "Value", "type": "string", "maxLength": 10, "minLength": 1}, "unit": {"title": "Unit", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "readOnly": true}}}, "ReadingLastData": {"required": ["indicator", "value", "unit"], "type": "object", "properties": {"created_at": {"title": "Fecha", "type": "string", "format": "date-time"}, "indicator": {"title": "Indicator", "type": "string", "minLength": 1}, "value": {"title": "Value", "type": "string", "maxLength": 10, "minLength": 1}, "unit": {"title": "Unit", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "readOnly": true}}}, "Reading": {"required": ["indicator", "value", "unit"], "type": "object", "properties": {"created_at": {"title": "Fecha", "type": "string", "format": "date-time"}, "indicator": {"title": "Indicator", "type": "string", "minLength": 1}, "value": {"title": "Value", "type": "string", "maxLength": 10, "minLength": 1}, "unit": {"title": "Unit", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "readOnly": true}}}, "ReportDocumentEnterprise": {"required": ["title", "category"], "type": "object", "properties": {"title": {"title": "Titulo", "type": "string", "maxLength": 30, "minLength": 1}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "category": {"title": "Category", "type": "string", "minLength": 1}, "document": {"title": "Document", "type": "string", "readOnly": true, "x-nullable": true, "format": "uri"}}}, "ReportDocumentRoom": {"required": ["title", "category"], "type": "object", "properties": {"title": {"title": "Titulo", "type": "string", "maxLength": 30, "minLength": 1}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "category": {"title": "Category", "type": "string", "minLength": 1}, "document": {"title": "Document", "type": "string", "readOnly": true, "format": "uri"}}}}}