# Mqtt Variable Controller

## GET /api/protocols/mqtt/variables

>

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"inSCADA API","version":"20250703-6"},"servers":[{"url":"https://inscada.cloud","description":"Generated server url"}],"security":[{"accessTokenCookie":[],"spaceHeader":[]}],"components":{"securitySchemes":{"accessTokenCookie":{"type":"apiKey","description":"Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the `ins_refresh_token` cookie at the /refresh endpoint.","name":"ins_access_token","in":"cookie"}}},"paths":{"/api/protocols/mqtt/variables":{"get":{"tags":["mqtt-variable-controller"],"operationId":"getVariables_7","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"required":["isActive","isPulseOff","isPulseOn","keepLastValues","name","type"],"type":"object","properties":{"creationDate":{"type":"string","format":"date-time","readOnly":true},"lastModifiedBy":{"type":"string","readOnly":true},"createdBy":{"type":"string","readOnly":true},"lastModifiedDate":{"type":"string","format":"date-time","readOnly":true},"id":{"type":"string"},"keepLastValues":{"type":"boolean"},"unit":{"type":"string"},"engZeroScale":{"type":"number","format":"double"},"fractionalDigitCount":{"type":"integer","format":"int32"},"name":{"maxLength":100,"minLength":0,"type":"string"},"logExpressionId":{"type":"string"},"logType":{"type":"string","enum":["No Log","When Changed","Periodically","Threshold","Expression","Custom"]},"logExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionId":{"type":"string"},"isPulseOff":{"type":"boolean"},"frameId":{"type":"string"},"setMinValue":{"type":"number","format":"double"},"pulseOffDuration":{"type":"integer","format":"int32"},"code":{"maxLength":20,"minLength":0,"type":"string"},"engFullScale":{"type":"number","format":"double"},"pulseOnDuration":{"type":"integer","format":"int32"},"logThreshold":{"type":"number","format":"double"},"rawFullScale":{"type":"number","format":"double"},"isPulseOn":{"type":"boolean"},"valueExpressionType":{"type":"string","enum":["NONE","CUSTOM","EXPRESSION"]},"logMaxValue":{"type":"number","format":"double"},"setMaxValue":{"type":"number","format":"double"},"logMinValue":{"type":"number","format":"double"},"isActive":{"type":"boolean"},"projectId":{"type":"string"},"rawZeroScale":{"type":"number","format":"double"},"logPeriod":{"minimum":1,"type":"integer","format":"int32"},"dsc":{"maxLength":255,"minLength":0,"type":"string"},"type":{"type":"string","enum":["Boolean","Byte","Short","Integer","Float","Long","Double","String"]},"connectionId":{"type":"string"},"deviceId":{"type":"string"}}}}}}},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"type":"object"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"type":"object"}}}},"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"type":"object"}}}}}}}}}
```

## POST /api/protocols/mqtt/variables

>

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"inSCADA API","version":"20250703-6"},"servers":[{"url":"https://inscada.cloud","description":"Generated server url"}],"security":[{"accessTokenCookie":[],"spaceHeader":[]}],"components":{"securitySchemes":{"accessTokenCookie":{"type":"apiKey","description":"Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the `ins_refresh_token` cookie at the /refresh endpoint.","name":"ins_access_token","in":"cookie"}}},"paths":{"/api/protocols/mqtt/variables":{"post":{"tags":["mqtt-variable-controller"],"operationId":"createVariable_6","requestBody":{"content":{"application/json":{"schema":{"required":["isActive","isPulseOff","isPulseOn","keepLastValues","name","type"],"type":"object","properties":{"creationDate":{"type":"string","format":"date-time","readOnly":true},"lastModifiedBy":{"type":"string","readOnly":true},"createdBy":{"type":"string","readOnly":true},"lastModifiedDate":{"type":"string","format":"date-time","readOnly":true},"id":{"type":"string"},"keepLastValues":{"type":"boolean"},"unit":{"type":"string"},"engZeroScale":{"type":"number","format":"double"},"fractionalDigitCount":{"type":"integer","format":"int32"},"name":{"maxLength":100,"minLength":0,"type":"string"},"logExpressionId":{"type":"string"},"logType":{"type":"string","enum":["No Log","When Changed","Periodically","Threshold","Expression","Custom"]},"logExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionId":{"type":"string"},"isPulseOff":{"type":"boolean"},"frameId":{"type":"string"},"setMinValue":{"type":"number","format":"double"},"pulseOffDuration":{"type":"integer","format":"int32"},"code":{"maxLength":20,"minLength":0,"type":"string"},"engFullScale":{"type":"number","format":"double"},"pulseOnDuration":{"type":"integer","format":"int32"},"logThreshold":{"type":"number","format":"double"},"rawFullScale":{"type":"number","format":"double"},"isPulseOn":{"type":"boolean"},"valueExpressionType":{"type":"string","enum":["NONE","CUSTOM","EXPRESSION"]},"logMaxValue":{"type":"number","format":"double"},"setMaxValue":{"type":"number","format":"double"},"logMinValue":{"type":"number","format":"double"},"isActive":{"type":"boolean"},"projectId":{"type":"string"},"rawZeroScale":{"type":"number","format":"double"},"logPeriod":{"minimum":1,"type":"integer","format":"int32"},"dsc":{"maxLength":255,"minLength":0,"type":"string"},"type":{"type":"string","enum":["Boolean","Byte","Short","Integer","Float","Long","Double","String"]},"connectionId":{"type":"string"},"deviceId":{"type":"string"}}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"required":["isActive","isPulseOff","isPulseOn","keepLastValues","name","type"],"type":"object","properties":{"$ref":"#/paths/~1api~1protocols~1mqtt~1variables/post/requestBody/content/application~1json/schema/properties"}}}}},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"type":"object"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"type":"object"}}}},"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"type":"object"}}}}}}}}}
```

## PUT /api/protocols/mqtt/variables

>

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"inSCADA API","version":"20250703-6"},"servers":[{"url":"https://inscada.cloud","description":"Generated server url"}],"security":[{"accessTokenCookie":[],"spaceHeader":[]}],"components":{"securitySchemes":{"accessTokenCookie":{"type":"apiKey","description":"Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the `ins_refresh_token` cookie at the /refresh endpoint.","name":"ins_access_token","in":"cookie"}}},"paths":{"/api/protocols/mqtt/variables":{"put":{"tags":["mqtt-variable-controller"],"operationId":"upsertVariables_3","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"required":["isActive","isPulseOff","isPulseOn","keepLastValues","name","type"],"type":"object","properties":{"creationDate":{"type":"string","format":"date-time","readOnly":true},"lastModifiedBy":{"type":"string","readOnly":true},"createdBy":{"type":"string","readOnly":true},"lastModifiedDate":{"type":"string","format":"date-time","readOnly":true},"id":{"type":"string"},"keepLastValues":{"type":"boolean"},"unit":{"type":"string"},"engZeroScale":{"type":"number","format":"double"},"fractionalDigitCount":{"type":"integer","format":"int32"},"name":{"maxLength":100,"minLength":0,"type":"string"},"logExpressionId":{"type":"string"},"logType":{"type":"string","enum":["No Log","When Changed","Periodically","Threshold","Expression","Custom"]},"logExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionId":{"type":"string"},"isPulseOff":{"type":"boolean"},"frameId":{"type":"string"},"setMinValue":{"type":"number","format":"double"},"pulseOffDuration":{"type":"integer","format":"int32"},"code":{"maxLength":20,"minLength":0,"type":"string"},"engFullScale":{"type":"number","format":"double"},"pulseOnDuration":{"type":"integer","format":"int32"},"logThreshold":{"type":"number","format":"double"},"rawFullScale":{"type":"number","format":"double"},"isPulseOn":{"type":"boolean"},"valueExpressionType":{"type":"string","enum":["NONE","CUSTOM","EXPRESSION"]},"logMaxValue":{"type":"number","format":"double"},"setMaxValue":{"type":"number","format":"double"},"logMinValue":{"type":"number","format":"double"},"isActive":{"type":"boolean"},"projectId":{"type":"string"},"rawZeroScale":{"type":"number","format":"double"},"logPeriod":{"minimum":1,"type":"integer","format":"int32"},"dsc":{"maxLength":255,"minLength":0,"type":"string"},"type":{"type":"string","enum":["Boolean","Byte","Short","Integer","Float","Long","Double","String"]},"connectionId":{"type":"string"},"deviceId":{"type":"string"}}}}}},"required":true},"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"type":"object"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"type":"object"}}}},"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"type":"object"}}}}}}}}}
```

## GET /api/protocols/mqtt/variables/{variableId}

>

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"inSCADA API","version":"20250703-6"},"servers":[{"url":"https://inscada.cloud","description":"Generated server url"}],"security":[{"accessTokenCookie":[],"spaceHeader":[]}],"components":{"securitySchemes":{"accessTokenCookie":{"type":"apiKey","description":"Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the `ins_refresh_token` cookie at the /refresh endpoint.","name":"ins_access_token","in":"cookie"}}},"paths":{"/api/protocols/mqtt/variables/{variableId}":{"get":{"tags":["mqtt-variable-controller"],"operationId":"getVariable_7","parameters":[{"name":"variableId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"required":["isActive","isPulseOff","isPulseOn","keepLastValues","name","type"],"type":"object","properties":{"creationDate":{"type":"string","format":"date-time","readOnly":true},"lastModifiedBy":{"type":"string","readOnly":true},"createdBy":{"type":"string","readOnly":true},"lastModifiedDate":{"type":"string","format":"date-time","readOnly":true},"id":{"type":"string"},"keepLastValues":{"type":"boolean"},"unit":{"type":"string"},"engZeroScale":{"type":"number","format":"double"},"fractionalDigitCount":{"type":"integer","format":"int32"},"name":{"maxLength":100,"minLength":0,"type":"string"},"logExpressionId":{"type":"string"},"logType":{"type":"string","enum":["No Log","When Changed","Periodically","Threshold","Expression","Custom"]},"logExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionId":{"type":"string"},"isPulseOff":{"type":"boolean"},"frameId":{"type":"string"},"setMinValue":{"type":"number","format":"double"},"pulseOffDuration":{"type":"integer","format":"int32"},"code":{"maxLength":20,"minLength":0,"type":"string"},"engFullScale":{"type":"number","format":"double"},"pulseOnDuration":{"type":"integer","format":"int32"},"logThreshold":{"type":"number","format":"double"},"rawFullScale":{"type":"number","format":"double"},"isPulseOn":{"type":"boolean"},"valueExpressionType":{"type":"string","enum":["NONE","CUSTOM","EXPRESSION"]},"logMaxValue":{"type":"number","format":"double"},"setMaxValue":{"type":"number","format":"double"},"logMinValue":{"type":"number","format":"double"},"isActive":{"type":"boolean"},"projectId":{"type":"string"},"rawZeroScale":{"type":"number","format":"double"},"logPeriod":{"minimum":1,"type":"integer","format":"int32"},"dsc":{"maxLength":255,"minLength":0,"type":"string"},"type":{"type":"string","enum":["Boolean","Byte","Short","Integer","Float","Long","Double","String"]},"connectionId":{"type":"string"},"deviceId":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"type":"object"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"type":"object"}}}},"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"type":"object"}}}}}}}}}
```

## PUT /api/protocols/mqtt/variables/{variableId}

>

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"inSCADA API","version":"20250703-6"},"servers":[{"url":"https://inscada.cloud","description":"Generated server url"}],"security":[{"accessTokenCookie":[],"spaceHeader":[]}],"components":{"securitySchemes":{"accessTokenCookie":{"type":"apiKey","description":"Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the `ins_refresh_token` cookie at the /refresh endpoint.","name":"ins_access_token","in":"cookie"}}},"paths":{"/api/protocols/mqtt/variables/{variableId}":{"put":{"tags":["mqtt-variable-controller"],"operationId":"updateVariable_6","parameters":[{"name":"variableId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"required":["isActive","isPulseOff","isPulseOn","keepLastValues","name","type"],"type":"object","properties":{"creationDate":{"type":"string","format":"date-time","readOnly":true},"lastModifiedBy":{"type":"string","readOnly":true},"createdBy":{"type":"string","readOnly":true},"lastModifiedDate":{"type":"string","format":"date-time","readOnly":true},"id":{"type":"string"},"keepLastValues":{"type":"boolean"},"unit":{"type":"string"},"engZeroScale":{"type":"number","format":"double"},"fractionalDigitCount":{"type":"integer","format":"int32"},"name":{"maxLength":100,"minLength":0,"type":"string"},"logExpressionId":{"type":"string"},"logType":{"type":"string","enum":["No Log","When Changed","Periodically","Threshold","Expression","Custom"]},"logExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionId":{"type":"string"},"isPulseOff":{"type":"boolean"},"frameId":{"type":"string"},"setMinValue":{"type":"number","format":"double"},"pulseOffDuration":{"type":"integer","format":"int32"},"code":{"maxLength":20,"minLength":0,"type":"string"},"engFullScale":{"type":"number","format":"double"},"pulseOnDuration":{"type":"integer","format":"int32"},"logThreshold":{"type":"number","format":"double"},"rawFullScale":{"type":"number","format":"double"},"isPulseOn":{"type":"boolean"},"valueExpressionType":{"type":"string","enum":["NONE","CUSTOM","EXPRESSION"]},"logMaxValue":{"type":"number","format":"double"},"setMaxValue":{"type":"number","format":"double"},"logMinValue":{"type":"number","format":"double"},"isActive":{"type":"boolean"},"projectId":{"type":"string"},"rawZeroScale":{"type":"number","format":"double"},"logPeriod":{"minimum":1,"type":"integer","format":"int32"},"dsc":{"maxLength":255,"minLength":0,"type":"string"},"type":{"type":"string","enum":["Boolean","Byte","Short","Integer","Float","Long","Double","String"]},"connectionId":{"type":"string"},"deviceId":{"type":"string"}}}}},"required":true},"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"type":"object"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"type":"object"}}}},"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"type":"object"}}}}}}}}}
```

## DELETE /api/protocols/mqtt/variables/{variableId}

>

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"inSCADA API","version":"20250703-6"},"servers":[{"url":"https://inscada.cloud","description":"Generated server url"}],"security":[{"accessTokenCookie":[],"spaceHeader":[]}],"components":{"securitySchemes":{"accessTokenCookie":{"type":"apiKey","description":"Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the `ins_refresh_token` cookie at the /refresh endpoint.","name":"ins_access_token","in":"cookie"}}},"paths":{"/api/protocols/mqtt/variables/{variableId}":{"delete":{"tags":["mqtt-variable-controller"],"operationId":"deleteVariable_7","parameters":[{"name":"variableId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"type":"object"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"type":"object"}}}},"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"type":"object"}}}}}}}}}
```

## POST /api/protocols/mqtt/variables/filter/pages

>

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"inSCADA API","version":"20250703-6"},"servers":[{"url":"https://inscada.cloud","description":"Generated server url"}],"security":[{"accessTokenCookie":[],"spaceHeader":[]}],"components":{"securitySchemes":{"accessTokenCookie":{"type":"apiKey","description":"Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the `ins_refresh_token` cookie at the /refresh endpoint.","name":"ins_access_token","in":"cookie"}}},"paths":{"/api/protocols/mqtt/variables/filter/pages":{"post":{"tags":["mqtt-variable-controller"],"operationId":"getVariablesByFilter_4","parameters":[{"name":"pageable","in":"query","required":true,"schema":{"type":"object","properties":{"page":{"minimum":0,"type":"integer","format":"int32"},"size":{"minimum":1,"type":"integer","format":"int32"},"sort":{"type":"array","items":{"type":"string"}}}}}],"requestBody":{"content":{"application/json":{"schema":{"required":["projectId"],"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"dscIn":{"type":"string"},"projectId":{"type":"string"},"frameId":{"type":"string"},"connectionId":{"type":"string"},"nameIn":{"type":"string"},"deviceId":{"type":"string"}}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","properties":{"totalElements":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"},"first":{"type":"boolean"},"last":{"type":"boolean"},"size":{"type":"integer","format":"int32"},"content":{"type":"array","items":{"required":["isActive","isPulseOff","isPulseOn","keepLastValues","name","type"],"type":"object","properties":{"creationDate":{"type":"string","format":"date-time","readOnly":true},"lastModifiedBy":{"type":"string","readOnly":true},"createdBy":{"type":"string","readOnly":true},"lastModifiedDate":{"type":"string","format":"date-time","readOnly":true},"id":{"type":"string"},"keepLastValues":{"type":"boolean"},"unit":{"type":"string"},"engZeroScale":{"type":"number","format":"double"},"fractionalDigitCount":{"type":"integer","format":"int32"},"name":{"maxLength":100,"minLength":0,"type":"string"},"logExpressionId":{"type":"string"},"logType":{"type":"string","enum":["No Log","When Changed","Periodically","Threshold","Expression","Custom"]},"logExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionId":{"type":"string"},"isPulseOff":{"type":"boolean"},"frameId":{"type":"string"},"setMinValue":{"type":"number","format":"double"},"pulseOffDuration":{"type":"integer","format":"int32"},"code":{"maxLength":20,"minLength":0,"type":"string"},"engFullScale":{"type":"number","format":"double"},"pulseOnDuration":{"type":"integer","format":"int32"},"logThreshold":{"type":"number","format":"double"},"rawFullScale":{"type":"number","format":"double"},"isPulseOn":{"type":"boolean"},"valueExpressionType":{"type":"string","enum":["NONE","CUSTOM","EXPRESSION"]},"logMaxValue":{"type":"number","format":"double"},"setMaxValue":{"type":"number","format":"double"},"logMinValue":{"type":"number","format":"double"},"isActive":{"type":"boolean"},"projectId":{"type":"string"},"rawZeroScale":{"type":"number","format":"double"},"logPeriod":{"minimum":1,"type":"integer","format":"int32"},"dsc":{"maxLength":255,"minLength":0,"type":"string"},"type":{"type":"string","enum":["Boolean","Byte","Short","Integer","Float","Long","Double","String"]},"connectionId":{"type":"string"},"deviceId":{"type":"string"}}}},"number":{"type":"integer","format":"int32"},"sort":{"type":"array","items":{"type":"object","properties":{"direction":{"type":"string"},"nullHandling":{"type":"string"},"ascending":{"type":"boolean"},"property":{"type":"string"},"ignoreCase":{"type":"boolean"}}}},"numberOfElements":{"type":"integer","format":"int32"},"pageable":{"type":"object","properties":{"offset":{"type":"integer","format":"int64"},"sort":{"type":"array","items":{"type":"object","properties":{"$ref":"#/paths/~1api~1protocols~1mqtt~1variables~1filter~1pages/post/responses/200/content/*~1*/schema/properties/sort/items/properties"}}},"pageNumber":{"type":"integer","format":"int32"},"unpaged":{"type":"boolean"},"paged":{"type":"boolean"},"pageSize":{"type":"integer","format":"int32"}}},"empty":{"type":"boolean"}}}}}},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"type":"object"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"type":"object"}}}},"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"type":"object"}}}}}}}}}
```

## GET /api/protocols/mqtt/variables/pages/by-project

>

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"inSCADA API","version":"20250703-6"},"servers":[{"url":"https://inscada.cloud","description":"Generated server url"}],"security":[{"accessTokenCookie":[],"spaceHeader":[]}],"components":{"securitySchemes":{"accessTokenCookie":{"type":"apiKey","description":"Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the `ins_refresh_token` cookie at the /refresh endpoint.","name":"ins_access_token","in":"cookie"}}},"paths":{"/api/protocols/mqtt/variables/pages/by-project":{"get":{"tags":["mqtt-variable-controller"],"operationId":"getVariablesByPages_4","parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string"}},{"name":"pageable","in":"query","required":true,"schema":{"type":"object","properties":{"page":{"minimum":0,"type":"integer","format":"int32"},"size":{"minimum":1,"type":"integer","format":"int32"},"sort":{"type":"array","items":{"type":"string"}}}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","properties":{"totalElements":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"},"first":{"type":"boolean"},"last":{"type":"boolean"},"size":{"type":"integer","format":"int32"},"content":{"type":"array","items":{"required":["isActive","isPulseOff","isPulseOn","keepLastValues","name","type"],"type":"object","properties":{"creationDate":{"type":"string","format":"date-time","readOnly":true},"lastModifiedBy":{"type":"string","readOnly":true},"createdBy":{"type":"string","readOnly":true},"lastModifiedDate":{"type":"string","format":"date-time","readOnly":true},"id":{"type":"string"},"keepLastValues":{"type":"boolean"},"unit":{"type":"string"},"engZeroScale":{"type":"number","format":"double"},"fractionalDigitCount":{"type":"integer","format":"int32"},"name":{"maxLength":100,"minLength":0,"type":"string"},"logExpressionId":{"type":"string"},"logType":{"type":"string","enum":["No Log","When Changed","Periodically","Threshold","Expression","Custom"]},"logExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionId":{"type":"string"},"isPulseOff":{"type":"boolean"},"frameId":{"type":"string"},"setMinValue":{"type":"number","format":"double"},"pulseOffDuration":{"type":"integer","format":"int32"},"code":{"maxLength":20,"minLength":0,"type":"string"},"engFullScale":{"type":"number","format":"double"},"pulseOnDuration":{"type":"integer","format":"int32"},"logThreshold":{"type":"number","format":"double"},"rawFullScale":{"type":"number","format":"double"},"isPulseOn":{"type":"boolean"},"valueExpressionType":{"type":"string","enum":["NONE","CUSTOM","EXPRESSION"]},"logMaxValue":{"type":"number","format":"double"},"setMaxValue":{"type":"number","format":"double"},"logMinValue":{"type":"number","format":"double"},"isActive":{"type":"boolean"},"projectId":{"type":"string"},"rawZeroScale":{"type":"number","format":"double"},"logPeriod":{"minimum":1,"type":"integer","format":"int32"},"dsc":{"maxLength":255,"minLength":0,"type":"string"},"type":{"type":"string","enum":["Boolean","Byte","Short","Integer","Float","Long","Double","String"]},"connectionId":{"type":"string"},"deviceId":{"type":"string"}}}},"number":{"type":"integer","format":"int32"},"sort":{"type":"array","items":{"type":"object","properties":{"direction":{"type":"string"},"nullHandling":{"type":"string"},"ascending":{"type":"boolean"},"property":{"type":"string"},"ignoreCase":{"type":"boolean"}}}},"numberOfElements":{"type":"integer","format":"int32"},"pageable":{"type":"object","properties":{"offset":{"type":"integer","format":"int64"},"sort":{"type":"array","items":{"type":"object","properties":{"$ref":"#/paths/~1api~1protocols~1mqtt~1variables~1pages~1by-project/get/responses/200/content/*~1*/schema/properties/sort/items/properties"}}},"pageNumber":{"type":"integer","format":"int32"},"unpaged":{"type":"boolean"},"paged":{"type":"boolean"},"pageSize":{"type":"integer","format":"int32"}}},"empty":{"type":"boolean"}}}}}},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"type":"object"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"type":"object"}}}},"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"type":"object"}}}}}}}}}
```

## GET /api/protocols/mqtt/variables/by-project

>

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"inSCADA API","version":"20250703-6"},"servers":[{"url":"https://inscada.cloud","description":"Generated server url"}],"security":[{"accessTokenCookie":[],"spaceHeader":[]}],"components":{"securitySchemes":{"accessTokenCookie":{"type":"apiKey","description":"Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the `ins_refresh_token` cookie at the /refresh endpoint.","name":"ins_access_token","in":"cookie"}}},"paths":{"/api/protocols/mqtt/variables/by-project":{"get":{"tags":["mqtt-variable-controller"],"operationId":"getVariablesByProject_4","parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"required":["isActive","isPulseOff","isPulseOn","keepLastValues","name","type"],"type":"object","properties":{"creationDate":{"type":"string","format":"date-time","readOnly":true},"lastModifiedBy":{"type":"string","readOnly":true},"createdBy":{"type":"string","readOnly":true},"lastModifiedDate":{"type":"string","format":"date-time","readOnly":true},"id":{"type":"string"},"keepLastValues":{"type":"boolean"},"unit":{"type":"string"},"engZeroScale":{"type":"number","format":"double"},"fractionalDigitCount":{"type":"integer","format":"int32"},"name":{"maxLength":100,"minLength":0,"type":"string"},"logExpressionId":{"type":"string"},"logType":{"type":"string","enum":["No Log","When Changed","Periodically","Threshold","Expression","Custom"]},"logExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionId":{"type":"string"},"isPulseOff":{"type":"boolean"},"frameId":{"type":"string"},"setMinValue":{"type":"number","format":"double"},"pulseOffDuration":{"type":"integer","format":"int32"},"code":{"maxLength":20,"minLength":0,"type":"string"},"engFullScale":{"type":"number","format":"double"},"pulseOnDuration":{"type":"integer","format":"int32"},"logThreshold":{"type":"number","format":"double"},"rawFullScale":{"type":"number","format":"double"},"isPulseOn":{"type":"boolean"},"valueExpressionType":{"type":"string","enum":["NONE","CUSTOM","EXPRESSION"]},"logMaxValue":{"type":"number","format":"double"},"setMaxValue":{"type":"number","format":"double"},"logMinValue":{"type":"number","format":"double"},"isActive":{"type":"boolean"},"projectId":{"type":"string"},"rawZeroScale":{"type":"number","format":"double"},"logPeriod":{"minimum":1,"type":"integer","format":"int32"},"dsc":{"maxLength":255,"minLength":0,"type":"string"},"type":{"type":"string","enum":["Boolean","Byte","Short","Integer","Float","Long","Double","String"]},"connectionId":{"type":"string"},"deviceId":{"type":"string"}}}}}}},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"type":"object"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"type":"object"}}}},"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"type":"object"}}}}}}}}}
```

## GET /api/protocols/mqtt/variables/by-project-and-name

>

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"inSCADA API","version":"20250703-6"},"servers":[{"url":"https://inscada.cloud","description":"Generated server url"}],"security":[{"accessTokenCookie":[],"spaceHeader":[]}],"components":{"securitySchemes":{"accessTokenCookie":{"type":"apiKey","description":"Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the `ins_refresh_token` cookie at the /refresh endpoint.","name":"ins_access_token","in":"cookie"}}},"paths":{"/api/protocols/mqtt/variables/by-project-and-name":{"get":{"tags":["mqtt-variable-controller"],"operationId":"getVariableByName_4","parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"required":["isActive","isPulseOff","isPulseOn","keepLastValues","name","type"],"type":"object","properties":{"creationDate":{"type":"string","format":"date-time","readOnly":true},"lastModifiedBy":{"type":"string","readOnly":true},"createdBy":{"type":"string","readOnly":true},"lastModifiedDate":{"type":"string","format":"date-time","readOnly":true},"id":{"type":"string"},"keepLastValues":{"type":"boolean"},"unit":{"type":"string"},"engZeroScale":{"type":"number","format":"double"},"fractionalDigitCount":{"type":"integer","format":"int32"},"name":{"maxLength":100,"minLength":0,"type":"string"},"logExpressionId":{"type":"string"},"logType":{"type":"string","enum":["No Log","When Changed","Periodically","Threshold","Expression","Custom"]},"logExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionId":{"type":"string"},"isPulseOff":{"type":"boolean"},"frameId":{"type":"string"},"setMinValue":{"type":"number","format":"double"},"pulseOffDuration":{"type":"integer","format":"int32"},"code":{"maxLength":20,"minLength":0,"type":"string"},"engFullScale":{"type":"number","format":"double"},"pulseOnDuration":{"type":"integer","format":"int32"},"logThreshold":{"type":"number","format":"double"},"rawFullScale":{"type":"number","format":"double"},"isPulseOn":{"type":"boolean"},"valueExpressionType":{"type":"string","enum":["NONE","CUSTOM","EXPRESSION"]},"logMaxValue":{"type":"number","format":"double"},"setMaxValue":{"type":"number","format":"double"},"logMinValue":{"type":"number","format":"double"},"isActive":{"type":"boolean"},"projectId":{"type":"string"},"rawZeroScale":{"type":"number","format":"double"},"logPeriod":{"minimum":1,"type":"integer","format":"int32"},"dsc":{"maxLength":255,"minLength":0,"type":"string"},"type":{"type":"string","enum":["Boolean","Byte","Short","Integer","Float","Long","Double","String"]},"connectionId":{"type":"string"},"deviceId":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"type":"object"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"type":"object"}}}},"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"type":"object"}}}}}}}}}
```

## GET /api/protocols/mqtt/variables/by-ids

>

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"inSCADA API","version":"20250703-6"},"servers":[{"url":"https://inscada.cloud","description":"Generated server url"}],"security":[{"accessTokenCookie":[],"spaceHeader":[]}],"components":{"securitySchemes":{"accessTokenCookie":{"type":"apiKey","description":"Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the `ins_refresh_token` cookie at the /refresh endpoint.","name":"ins_access_token","in":"cookie"}}},"paths":{"/api/protocols/mqtt/variables/by-ids":{"get":{"tags":["mqtt-variable-controller"],"operationId":"getVariablesByIds_4","parameters":[{"name":"variableIds","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"required":["isActive","isPulseOff","isPulseOn","keepLastValues","name","type"],"type":"object","properties":{"creationDate":{"type":"string","format":"date-time","readOnly":true},"lastModifiedBy":{"type":"string","readOnly":true},"createdBy":{"type":"string","readOnly":true},"lastModifiedDate":{"type":"string","format":"date-time","readOnly":true},"id":{"type":"string"},"keepLastValues":{"type":"boolean"},"unit":{"type":"string"},"engZeroScale":{"type":"number","format":"double"},"fractionalDigitCount":{"type":"integer","format":"int32"},"name":{"maxLength":100,"minLength":0,"type":"string"},"logExpressionId":{"type":"string"},"logType":{"type":"string","enum":["No Log","When Changed","Periodically","Threshold","Expression","Custom"]},"logExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionId":{"type":"string"},"isPulseOff":{"type":"boolean"},"frameId":{"type":"string"},"setMinValue":{"type":"number","format":"double"},"pulseOffDuration":{"type":"integer","format":"int32"},"code":{"maxLength":20,"minLength":0,"type":"string"},"engFullScale":{"type":"number","format":"double"},"pulseOnDuration":{"type":"integer","format":"int32"},"logThreshold":{"type":"number","format":"double"},"rawFullScale":{"type":"number","format":"double"},"isPulseOn":{"type":"boolean"},"valueExpressionType":{"type":"string","enum":["NONE","CUSTOM","EXPRESSION"]},"logMaxValue":{"type":"number","format":"double"},"setMaxValue":{"type":"number","format":"double"},"logMinValue":{"type":"number","format":"double"},"isActive":{"type":"boolean"},"projectId":{"type":"string"},"rawZeroScale":{"type":"number","format":"double"},"logPeriod":{"minimum":1,"type":"integer","format":"int32"},"dsc":{"maxLength":255,"minLength":0,"type":"string"},"type":{"type":"string","enum":["Boolean","Byte","Short","Integer","Float","Long","Double","String"]},"connectionId":{"type":"string"},"deviceId":{"type":"string"}}}}}}},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"type":"object"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"type":"object"}}}},"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"type":"object"}}}}}}}}}
```

## GET /api/protocols/mqtt/variables/by-frame

>

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"inSCADA API","version":"20250703-6"},"servers":[{"url":"https://inscada.cloud","description":"Generated server url"}],"security":[{"accessTokenCookie":[],"spaceHeader":[]}],"components":{"securitySchemes":{"accessTokenCookie":{"type":"apiKey","description":"Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the `ins_refresh_token` cookie at the /refresh endpoint.","name":"ins_access_token","in":"cookie"}}},"paths":{"/api/protocols/mqtt/variables/by-frame":{"get":{"tags":["mqtt-variable-controller"],"operationId":"getVariablesByFrameId_4","parameters":[{"name":"frameId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"required":["isActive","isPulseOff","isPulseOn","keepLastValues","name","type"],"type":"object","properties":{"creationDate":{"type":"string","format":"date-time","readOnly":true},"lastModifiedBy":{"type":"string","readOnly":true},"createdBy":{"type":"string","readOnly":true},"lastModifiedDate":{"type":"string","format":"date-time","readOnly":true},"id":{"type":"string"},"keepLastValues":{"type":"boolean"},"unit":{"type":"string"},"engZeroScale":{"type":"number","format":"double"},"fractionalDigitCount":{"type":"integer","format":"int32"},"name":{"maxLength":100,"minLength":0,"type":"string"},"logExpressionId":{"type":"string"},"logType":{"type":"string","enum":["No Log","When Changed","Periodically","Threshold","Expression","Custom"]},"logExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionCode":{"maxLength":4000,"minLength":0,"type":"string"},"valueExpressionId":{"type":"string"},"isPulseOff":{"type":"boolean"},"frameId":{"type":"string"},"setMinValue":{"type":"number","format":"double"},"pulseOffDuration":{"type":"integer","format":"int32"},"code":{"maxLength":20,"minLength":0,"type":"string"},"engFullScale":{"type":"number","format":"double"},"pulseOnDuration":{"type":"integer","format":"int32"},"logThreshold":{"type":"number","format":"double"},"rawFullScale":{"type":"number","format":"double"},"isPulseOn":{"type":"boolean"},"valueExpressionType":{"type":"string","enum":["NONE","CUSTOM","EXPRESSION"]},"logMaxValue":{"type":"number","format":"double"},"setMaxValue":{"type":"number","format":"double"},"logMinValue":{"type":"number","format":"double"},"isActive":{"type":"boolean"},"projectId":{"type":"string"},"rawZeroScale":{"type":"number","format":"double"},"logPeriod":{"minimum":1,"type":"integer","format":"int32"},"dsc":{"maxLength":255,"minLength":0,"type":"string"},"type":{"type":"string","enum":["Boolean","Byte","Short","Integer","Float","Long","Double","String"]},"connectionId":{"type":"string"},"deviceId":{"type":"string"}}}}}}},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"type":"object"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"type":"object"}}}},"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"type":"object"}}}}}}}}}
```

## DELETE /api/protocols/mqtt/variables/multi/by-ids

>

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"inSCADA API","version":"20250703-6"},"servers":[{"url":"https://inscada.cloud","description":"Generated server url"}],"security":[{"accessTokenCookie":[],"spaceHeader":[]}],"components":{"securitySchemes":{"accessTokenCookie":{"type":"apiKey","description":"Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the `ins_refresh_token` cookie at the /refresh endpoint.","name":"ins_access_token","in":"cookie"}}},"paths":{"/api/protocols/mqtt/variables/multi/by-ids":{"delete":{"tags":["mqtt-variable-controller"],"operationId":"deleteVariablesByIds_4","parameters":[{"name":"variableIds","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"type":"object"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"type":"object"}}}},"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"type":"object"}}}}}}}}}
```

## DELETE /api/protocols/mqtt/variables/filter

>

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"inSCADA API","version":"20250703-6"},"servers":[{"url":"https://inscada.cloud","description":"Generated server url"}],"security":[{"accessTokenCookie":[],"spaceHeader":[]}],"components":{"securitySchemes":{"accessTokenCookie":{"type":"apiKey","description":"Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the `ins_refresh_token` cookie at the /refresh endpoint.","name":"ins_access_token","in":"cookie"}}},"paths":{"/api/protocols/mqtt/variables/filter":{"delete":{"tags":["mqtt-variable-controller"],"operationId":"deleteVariablesByFilter_4","requestBody":{"content":{"application/json":{"schema":{"required":["projectId"],"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"dscIn":{"type":"string"},"projectId":{"type":"string"},"frameId":{"type":"string"},"connectionId":{"type":"string"},"nameIn":{"type":"string"},"deviceId":{"type":"string"}}}}},"required":true},"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"type":"object"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"type":"object"}}}},"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"type":"object"}}}}}}}}}
```
