Admin API
Route groups, the authentication boundary, request behavior, and runtime semantics of Miravo's admin HTTP API.
Generated OpenAPI document for the Miravo admin API.
Generated OpenAPI document for the Miravo admin API.
application/json- response
[key: string]?unknowncurl -X GET 'https://example.com/api/openapi.json'{ "property1": null, "property2": null}Liveness probe for the Miravo admin server.
Liveness probe for the Miravo admin server.
application/json- response
status*string"ok""fail"factoryState*string"idle""running""paused""stopped"tickCount*integer0 <= valuemqttEnabled*booleanmqttConnected*boolean|nullopcuaEnabled*booleanopcuaConnected*boolean|nullmodbusEnabled*booleanmodbusConnected*boolean|nullstalled*booleanreason?stringfactoryName?string1 <= lengthprocessId?string1 <= lengthcurl -X GET 'https://example.com/api/healthz'{ "status": "ok", "factoryState": "idle", "tickCount": 0, "mqttEnabled": true, "mqttConnected": true, "opcuaEnabled": true, "opcuaConnected": true, "modbusEnabled": true, "modbusConnected": true, "stalled": true, "reason": "string", "factoryName": "string", "processId": "string"}Readiness probe for the Miravo admin server.
Readiness probe for the Miravo admin server.
application/json- response
status*string"ok""fail"factoryState*string"idle""running""paused""stopped"tickCount*integer0 <= valuemqttEnabled*booleanmqttConnected*boolean|nullopcuaEnabled*booleanopcuaConnected*boolean|nullmodbusEnabled*booleanmodbusConnected*boolean|nullstalled*booleanreason?stringfactoryName?string1 <= lengthprocessId?string1 <= lengthcurl -X GET 'https://example.com/api/readyz'{ "status": "ok", "factoryState": "idle", "tickCount": 0, "mqttEnabled": true, "mqttConnected": true, "opcuaEnabled": true, "opcuaConnected": true, "modbusEnabled": true, "modbusConnected": true, "stalled": true, "reason": "string", "factoryName": "string", "processId": "string"}Engine metrics snapshot.
miravo_session<token>Session cookie returned by POST /api/auth/login.
Engine metrics snapshot.
application/json- response
factoryName?string1 <= lengthcore*fleet*adapters*array<>curl -X GET 'https://example.com/api/metrics'{ "factoryName": "string", "core": { "state": "idle", "tickCount": 0, "simulationTimeSeconds": 0, "pauseAtSimulationSeconds": 1, "assetCount": 0, "memberValueCount": 0, "quarantinedAssetCount": 0, "engineErrorsCount": 0, "lastEngineError": { "context": "string", "message": "string" }, "tickOverrunsCount": 0, "circuitBreakerTripsCount": 0, "uptimeMs": 0, "actualTicksPerSecond": 0 }, "fleet": { "modelBreakdown": [ { "model": "string", "count": 0 } ], "lifecycleBreakdown": { "property1": 0, "property2": 0 }, "activeFaultCount": 0, "faultBreakdown": [ { "fault": "string", "count": 0 } ] }, "adapters": [ { "name": "string", "metrics": { "connected": true, "messagesPublished": 0, "messagesAttempted": 0, "messagesFiltered": 0, "errorsCount": 0, "rejectedWrites": 0, "lastPublishMs": 0, "health": { "state": "healthy", "pendingWorkCount": 0, "completedLastTick": 0 }, "clients": { "active": 0, "subscriptions": 0, "reads": 0, "writes": 0 } } } ]}Engine state snapshot.
miravo_session<token>Session cookie returned by POST /api/auth/login.
Engine state snapshot.
application/json- response
lines?array<>factoryName?string1 <= lengthmodels*array<>assets*array<>config*availableAdapters?array<>curl -X GET 'https://example.com/api/state'{ "lines": [ { "line": "string", "stations": [ { "id": "string", "state": "string", "good": 0, "scrap": 0 } ], "buffers": [ { "after": "string", "level": 0, "capacity": 1 } ] } ], "factoryName": "string", "models": [ { "name": "string", "memberCount": 0, "faultCount": 0, "faultNames": [ "string" ], "hasLifecycle": true } ], "assets": [ { "id": "string", "model": "string", "browsePath": [ "string" ], "lifecycleStage": "string", "operatingHours": 0, "activeFaults": [ "string" ], "isQuarantined": true, "production": { "property1": 0, "property2": 0 } } ], "config": { "seed": 0, "tickIntervalMs": 1, "timeMultiplier": 1, "adapters": [ "string" ], "template": { "name": "string", "path": "string" } }, "availableAdapters": [ { "name": "string", "enabled": true, "pending": true, "endpoint": "string", "boundPort": 1, "config": { "property1": null, "property2": null } } ]}Console bootstrap payload.
miravo_session<token>Session cookie returned by POST /api/auth/login.
Console bootstrap payload.
application/json- response
authenticated*falsefalsecurl -X GET 'https://example.com/api/bootstrap'{ "authenticated": false}Execute an engine command.
miravo_session<token>Session cookie returned by POST /api/auth/login.
application/json- body
correlationId?stringtype*"spawn""spawn"model*string1 <= lengthcount*integer0 < value <= 10000assetName?string1 <= lengthassetPrefix?string1 <= lengthprotocolScope?array<>1 <= itemsdryRun?booleanExecute an engine command.
application/json- response
success*booleancommand*stringcorrelationId?stringmessage*stringdata?unknownerror?stringcurl -X POST 'https://example.com/api/commands' \ -H 'Content-Type: application/json' \ -d '{ "type": "spawn", "model": "string", "count": 1}'{ "success": true, "command": "string", "correlationId": "string", "message": "string", "data": null, "error": "string"}Request graceful shutdown.
miravo_session<token>Session cookie returned by POST /api/auth/login.
application/json- body
reason?string1 <= lengthRequest graceful shutdown.
application/json- response
status*"shutting_down""shutting_down"curl -X POST 'https://example.com/api/shutdown' \ -H 'Content-Type: application/json' \ -d '{}'{ "status": "shutting_down"}Inspect a running asset.
miravo_session<token>Session cookie returned by POST /api/auth/login.
id*string1 <= lengthInspect a running asset.
application/json- response
id*string1 <= lengthassetType*string1 <= lengthbrowsePath*array<>lifecycleStage*string1 <= lengthoperatingHours*number0 <= valueactiveFaults*array<>isQuarantined*booleanparameters*inputs*members*methods*curl -X GET 'https://example.com/api/assets/string'{ "id": "string", "assetType": "string", "browsePath": [ "string" ], "lifecycleStage": "string", "operatingHours": 0, "activeFaults": [ "string" ], "isQuarantined": true, "parameters": { "property1": { "value": 0, "type": "string", "unit": "string" }, "property2": { "value": 0, "type": "string", "unit": "string" } }, "inputs": { "property1": { "value": 0, "default": 0, "unit": "string", "binding": { "asset": "string", "member": "string" } }, "property2": { "value": 0, "default": 0, "unit": "string", "binding": { "asset": "string", "member": "string" } } }, "members": { "property1": { "value": 0, "quality": "good", "timestamp": 0, "meta": { "kind": "string", "dataType": "string", "access": "string", "unit": "string", "euRange": [ 0, 0 ] } }, "property2": { "value": 0, "quality": "good", "timestamp": 0, "meta": { "kind": "string", "dataType": "string", "access": "string", "unit": "string", "euRange": [ 0, 0 ] } } }, "methods": { "property1": { "description": "string", "inputArguments": [ { "name": "string", "dataType": "string", "description": "string" } ], "outputArguments": [ { "name": "string", "dataType": "string", "description": "string" } ] }, "property2": { "description": "string", "inputArguments": [ { "name": "string", "dataType": "string", "description": "string" } ], "outputArguments": [ { "name": "string", "dataType": "string", "description": "string" } ] } }}Inspect a registered model schema.
miravo_session<token>Session cookie returned by POST /api/auth/login.
name*string1 <= lengthInspect a registered model schema.
application/json- response
name*string1 <= lengthdescription*string|nullparameters*inputs?members*methods*faults*array<>lifecycle*|nullcurl -X GET 'https://example.com/api/models/string'{ "name": "string", "description": "string", "parameters": { "property1": { "type": "string", "default": 0, "unit": "string" }, "property2": { "type": "string", "default": 0, "unit": "string" } }, "inputs": { "property1": { "default": 0, "unit": "string", "description": "string" }, "property2": { "default": 0, "unit": "string", "description": "string" } }, "members": { "property1": { "kind": "string", "dataType": "string", "access": "string", "unit": "string", "euRange": [ 0, 0 ], "default": 0 }, "property2": { "kind": "string", "dataType": "string", "access": "string", "unit": "string", "euRange": [ 0, 0 ], "default": 0 } }, "methods": { "property1": { "description": "string", "inputArguments": [ { "name": "string", "dataType": "string", "description": "string" } ], "outputArguments": [ { "name": "string", "dataType": "string", "description": "string" } ] }, "property2": { "description": "string", "inputArguments": [ { "name": "string", "dataType": "string", "description": "string" } ], "outputArguments": [ { "name": "string", "dataType": "string", "description": "string" } ] } }, "faults": [ "string" ], "lifecycle": { "stages": [ "string" ], "totalHours": 0 }}Read paginated event log entries.
miravo_session<token>Session cookie returned by POST /api/auth/login.
type?string"fault:triggered""fault:cleared""lifecycle:changed""asset:maintenance""asset:created""asset:removed""template:loaded""template:unloaded""engine:state-changed""engine:error""integration:resource""integration:operation"assetId?string1 <= lengthlimit?integer0 < value <= 1000cursor?|0 <= valueRead paginated event log entries.
application/json- response
events*array<||||||||||>nextCursor*|0 <= valuehasMore*booleancurl -X GET 'https://example.com/api/events'{ "events": [ { "id": 0, "type": "fault:triggered", "assetId": "string", "fault": "string", "effects": { "property1": null, "property2": null }, "tick": 0, "simulationTime": 0, "timestamp": 0 } ], "nextCursor": 0, "hasMore": true}List catalog models.
miravo_session<token>Session cookie returned by POST /api/auth/login.
List catalog models.
application/json- response
[index: integer]?curl -X GET 'https://example.com/api/catalog/models'[ { "name": "string", "description": "string", "memberCount": 0, "methodCount": 0, "faultCount": 0, "hasLifecycle": true, "lifecycleStageCount": 0, "source": "string" }]Download LE Digital Twin JSON for a catalog model.
miravo_session<token>Session cookie returned by POST /api/auth/login.
name*string1 <= lengthDownload LE Digital Twin JSON for a catalog model.
application/json- response
[key: string]?unknowncurl -X GET 'https://example.com/api/catalog/models/string/le-dt.json'{ "property1": null, "property2": null}Read raw YAML for a catalog model.
miravo_session<token>Session cookie returned by POST /api/auth/login.
name*string1 <= lengthRead raw YAML for a catalog model.
response?stringtext/yamlcurl -X GET 'https://example.com/api/catalog/models/string/yaml'"name: value\n"Read catalog model schema.
miravo_session<token>Session cookie returned by POST /api/auth/login.
name*string1 <= lengthRead catalog model schema.
application/json- response
name*string1 <= lengthdescription*string|nullparameters*inputs?members*methods*faults*array<>lifecycle*|nullcurl -X GET 'https://example.com/api/catalog/models/string'{ "name": "string", "description": "string", "parameters": { "property1": { "type": "string", "default": 0, "unit": "string" }, "property2": { "type": "string", "default": 0, "unit": "string" } }, "inputs": { "property1": { "default": 0, "unit": "string", "description": "string" }, "property2": { "default": 0, "unit": "string", "description": "string" } }, "members": { "property1": { "kind": "string", "dataType": "string", "access": "string", "unit": "string", "euRange": [ 0, 0 ], "default": 0 }, "property2": { "kind": "string", "dataType": "string", "access": "string", "unit": "string", "euRange": [ 0, 0 ], "default": 0 } }, "methods": { "property1": { "description": "string", "inputArguments": [ { "name": "string", "dataType": "string", "description": "string" } ], "outputArguments": [ { "name": "string", "dataType": "string", "description": "string" } ] }, "property2": { "description": "string", "inputArguments": [ { "name": "string", "dataType": "string", "description": "string" } ], "outputArguments": [ { "name": "string", "dataType": "string", "description": "string" } ] } }, "faults": [ "string" ], "lifecycle": { "stages": [ "string" ], "totalHours": 0 }}Download LE template JSON export.
miravo_session<token>Session cookie returned by POST /api/auth/login.
id*string1 <= lengthhost*string1 <= lengthprotocol?string"mqtt""opcua""modbus"modbusPort?integer1 <= value <= 65535opcuaPort?integer1 <= value <= 65535mqttPort?integer1 <= value <= 65535Download LE template JSON export.
application/json- response
[key: string]?unknowncurl -X GET 'https://example.com/api/catalog/templates/string/le-template.json?host=string'{ "property1": null, "property2": null}Download LE tags CSV export.
miravo_session<token>Session cookie returned by POST /api/auth/login.
id*string1 <= lengthhost*string1 <= lengthprotocol?string"mqtt""opcua""modbus"modbusPort?integer1 <= value <= 65535opcuaPort?integer1 <= value <= 65535mqttPort?integer1 <= value <= 65535Download LE tags CSV export.
response?stringtext/csvcurl -X GET 'https://example.com/api/catalog/templates/string/le-tags.csv?host=string'"name,value\nmotor.speed,42\n"Read raw YAML for a catalog template.
miravo_session<token>Session cookie returned by POST /api/auth/login.
id*string1 <= lengthRead raw YAML for a catalog template.
response?stringtext/yamlcurl -X GET 'https://example.com/api/catalog/templates/string/yaml'"name: value\n"Read catalog template detail.
miravo_session<token>Session cookie returned by POST /api/auth/login.
id*string1 <= lengthRead catalog template detail.
application/json- response
id*string1 <= lengthname*string1 <= lengthdescription*string|nullcategory*string1 <= lengthmodels*array<>assetCount*integer0 <= valuememberCount*integer0 <= valuesource*string1 <= lengthtopology*array<>namespace?settings?curl -X GET 'https://example.com/api/catalog/templates/string'{ "id": "string", "name": "string", "description": "string", "category": "string", "models": [ "string" ], "assetCount": 0, "memberCount": 0, "source": "string", "topology": [ { "name": "string", "lines": [ { "name": "string", "assets": [ { "model": "string", "count": 0, "variation": 0, "parameters": { "property1": 0, "property2": 0 }, "protocol_scope": [ "mqtt" ] } ], "protocol_scope": [ "mqtt" ] } ], "protocol_scope": [ "mqtt" ] } ], "namespace": { "enterprise": "string", "site": "string", "prefix": "string" }, "settings": { "tickIntervalMs": 1, "timeMultiplier": 1, "limits": { "maxMembersPerModel": 1, "maxAssetCount": 1 } }}List catalog templates.
miravo_session<token>Session cookie returned by POST /api/auth/login.
List catalog templates.
application/json- response
[index: integer]?curl -X GET 'https://example.com/api/catalog/templates'[ { "id": "string", "name": "string", "description": "string", "category": "string", "models": [ "string" ], "assetCount": 0, "memberCount": 0, "source": "string" }]List templates loaded into the factory.
miravo_session<token>Session cookie returned by POST /api/auth/login.
List templates loaded into the factory.
application/json- response
[index: integer]?curl -X GET 'https://example.com/api/templates'[ { "templateId": "string", "templateName": "string", "templatePath": "string", "entryHash": "string", "assetIds": [ "string" ], "models": [ "string" ], "areas": [ { "name": "string", "lines": [ "string" ] } ] }]Read unified protocol manifest.
miravo_session<token>Session cookie returned by POST /api/auth/login.
Read unified protocol manifest.
application/json- response
template?string1 <= lengthgeneratedAt*stringdate-timeprotocols*tags*array<>summary*curl -X GET 'https://example.com/api/manifest'{ "template": "string", "generatedAt": "2019-08-24T14:15:22Z", "protocols": { "property1": { "enabled": true, "port": 1 }, "property2": { "enabled": true, "port": 1 } }, "tags": [ { "asset": "string", "browsePath": "string", "member": "string", "model": "string", "dataType": "string", "unit": "string", "euRange": [ 0, 0 ], "access": "string", "kind": "variable", "protocols": { "property1": { "property1": null, "property2": null }, "property2": { "property1": null, "property2": null } } } ], "summary": { "totalTags": 0, "totalAssets": 0, "enabledProtocols": [ "string" ] }}Authenticate and create an admin session.
application/json- body
username*string1 <= lengthpassword*string1 <= lengthAuthenticate and create an admin session.
application/json- response
ok*truetruechangePassword*booleancurl -X POST 'https://example.com/api/auth/login' \ -H 'Content-Type: application/json' \ -d '{ "username": "string", "password": "string"}'{ "ok": true, "changePassword": true}Destroy the current admin session.
Destroy the current admin session.
application/json- response
ok*truetruecurl -X POST 'https://example.com/api/auth/logout'{ "ok": true}Change the admin password.
miravo_session<token>Session cookie returned by POST /api/auth/login.
application/json- body
oldPassword*string1 <= lengthnewPassword*string6 <= lengthChange the admin password.
application/json- response
ok*truetruecurl -X PUT 'https://example.com/api/auth/password' \ -H 'Content-Type: application/json' \ -d '{ "oldPassword": "string", "newPassword": "string"}'{ "ok": true}Check the current auth status.
miravo_session<token>Session cookie returned by POST /api/auth/login.
Check the current auth status.
application/json- response
authenticated*booleanusername?stringcurl -X GET 'https://example.com/api/auth/status'{ "authenticated": true, "username": "string"}Upgrade to the runtime WebSocket stream.
miravo_session<token>Session cookie returned by POST /api/auth/login.
Upgrade to the runtime WebSocket stream.
curl -X GET 'https://example.com/api/ws'List persisted integration operation summaries, optionally for one template or asset.
miravo_session<token>Session cookie returned by POST /api/auth/login.
type?string"apply""cleanup"targetId?string1 <= lengthtemplateId?string1 <= lengthassetId?string1 <= lengthlimit?integer0 < value <= 500offset?|0 <= valueList persisted integration operation summaries, optionally for one template or asset.
application/json- response
operations*array<>total*integer0 <= valuehasMore*booleancurl -X GET 'https://example.com/api/integrations/le/operations'{ "operations": [ { "schemaVersion": 1, "operationId": "string", "operationType": "apply", "status": "success", "factoryName": "string", "templateId": "string", "assetId": "string", "targetId": "string", "targetLabel": "string", "hostname": "string", "scope": [ "string" ], "successCount": 0, "failedCount": 0, "blockedCount": 0, "startedAt": 0, "completedAt": 0, "durationMs": 0, "resourceCounts": { "device": { "create": 0, "update": 0, "replace": 0, "delete": 0, "noop": 0, "failed": 0, "total": 0 }, "model": { "create": 0, "update": 0, "replace": 0, "delete": 0, "noop": 0, "failed": 0, "total": 0 }, "asset": { "create": 0, "update": 0, "replace": 0, "delete": 0, "noop": 0, "failed": 0, "total": 0 }, "param-sync": { "create": 0, "update": 0, "replace": 0, "delete": 0, "noop": 0, "failed": 0, "total": 0 } }, "error": "string" } ], "total": 0, "hasMore": true}List saved LE targets.
miravo_session<token>Session cookie returned by POST /api/auth/login.
List saved LE targets.
application/json- response
targets*array<>curl -X GET 'https://example.com/api/integrations/le/targets'{ "targets": [ { "id": "string", "integrationId": "string", "label": "string", "hostname": "string", "apiTokenSet": true, "sourceHostname": "string", "exposedPorts": { "mqtt": 1, "opcua": 1, "modbus": 1 }, "lastUsedAt": 0 } ]}Create an LE target.
miravo_session<token>Session cookie returned by POST /api/auth/login.
application/json- body
integrationId?string1 <= length"litmus-edge"label*string1 <= lengthhostname*string1 <= lengthapiToken*string1 <= lengthsourceHostname*string1 <= lengthCreate an LE target.
application/json- response
id*string1 <= lengthintegrationId*string1 <= lengthlabel*string1 <= lengthhostname*string1 <= lengthapiTokenSet*booleansourceHostname*string1 <= lengthexposedPorts?lastUsedAt?integer0 <= valuecurl -X POST 'https://example.com/api/integrations/le/targets' \ -H 'Content-Type: application/json' \ -d '{ "label": "string", "hostname": "string", "apiToken": "string", "sourceHostname": "string"}'{ "id": "string", "integrationId": "string", "label": "string", "hostname": "string", "apiTokenSet": true, "sourceHostname": "string", "exposedPorts": { "mqtt": 1, "opcua": 1, "modbus": 1 }, "lastUsedAt": 0}Test LE target connectivity.
miravo_session<token>Session cookie returned by POST /api/auth/login.
application/json- body
targetId?string1 <= lengthhostname*string1 <= lengthapiToken?string1 <= lengthsourceHostname*string1 <= lengthTest LE target connectivity.
application/json- response
connected*truetruehostname*string1 <= lengthsourceHostname*string1 <= lengthlitmusEdgeVersion?string1 <= lengthwarning?string1 <= lengthcurl -X POST 'https://example.com/api/integrations/le/targets/test' \ -H 'Content-Type: application/json' \ -d '{ "hostname": "string", "sourceHostname": "string"}'{ "connected": true, "hostname": "string", "sourceHostname": "string", "litmusEdgeVersion": "string", "warning": "string"}Read one LE target.
miravo_session<token>Session cookie returned by POST /api/auth/login.
id*string1 <= lengthRead one LE target.
application/json- response
id*string1 <= lengthintegrationId*string1 <= lengthlabel*string1 <= lengthhostname*string1 <= lengthapiTokenSet*booleansourceHostname*string1 <= lengthexposedPorts?lastUsedAt?integer0 <= valuecurl -X GET 'https://example.com/api/integrations/le/targets/string'{ "id": "string", "integrationId": "string", "label": "string", "hostname": "string", "apiTokenSet": true, "sourceHostname": "string", "exposedPorts": { "mqtt": 1, "opcua": 1, "modbus": 1 }, "lastUsedAt": 0}Update one LE target.
miravo_session<token>Session cookie returned by POST /api/auth/login.
id*string1 <= lengthapplication/json- body
integrationId?string1 <= lengthlabel?string1 <= lengthhostname?string1 <= lengthapiToken?string1 <= lengthsourceHostname?string1 <= lengthUpdate one LE target.
application/json- response
id*string1 <= lengthintegrationId*string1 <= lengthlabel*string1 <= lengthhostname*string1 <= lengthapiTokenSet*booleansourceHostname*string1 <= lengthexposedPorts?lastUsedAt?integer0 <= valuecurl -X PUT 'https://example.com/api/integrations/le/targets/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "integrationId": "string", "label": "string", "hostname": "string", "apiTokenSet": true, "sourceHostname": "string", "exposedPorts": { "mqtt": 1, "opcua": 1, "modbus": 1 }, "lastUsedAt": 0}Delete one LE target.
miravo_session<token>Session cookie returned by POST /api/auth/login.
id*string1 <= lengthDelete one LE target.
application/json- response
message*string1 <= lengthcurl -X DELETE 'https://example.com/api/integrations/le/targets/string'{ "message": "string"}Preview applying a running template or standalone asset to an LE target.
miravo_session<token>Session cookie returned by POST /api/auth/login.
application/json- body
targetId*string1 <= lengthprotocol?string"mqtt""opcua""modbus"scope?array<>ifUnmanaged?string"fail""skip"exposedPorts?templateId*string1 <= lengthPreview applying a running template or standalone asset to an LE target.
application/json- response
plan*curl -X POST 'https://example.com/api/integrations/le/plan' \ -H 'Content-Type: application/json' \ -d '{ "targetId": "string", "templateId": "string"}'{ "plan": { "sourceMode": "static", "targetHost": "string", "sourceHostname": "string", "scope": [ "devices" ], "filters": { "area": "string", "line": "string", "asset": "string" }, "entries": [ { "action": "create", "resourceType": "device", "name": "string", "resourceId": "string", "protocol": "mqtt", "endpoint": "string", "detail": "string", "blockReason": "string" } ] }}Apply a running template or standalone asset to an LE target.
miravo_session<token>Session cookie returned by POST /api/auth/login.
application/json- body
targetId*string1 <= lengthprotocol?string"mqtt""opcua""modbus"scope?array<>ifUnmanaged?string"fail""skip"exposedPorts?templateId*string1 <= lengthApply a running template or standalone asset to an LE target.
application/json- response
plan*applied*integer0 <= valuefailed*integer0 <= valueerror?string1 <= lengthcurl -X POST 'https://example.com/api/integrations/le/apply' \ -H 'Content-Type: application/json' \ -d '{ "targetId": "string", "templateId": "string"}'{ "plan": { "sourceMode": "static", "targetHost": "string", "sourceHostname": "string", "scope": [ "devices" ], "filters": { "area": "string", "line": "string", "asset": "string" }, "entries": [ { "action": "create", "resourceType": "device", "name": "string", "resourceId": "string", "protocol": "mqtt", "endpoint": "string", "detail": "string", "blockReason": "string" } ] }, "applied": 0, "failed": 0, "error": "string"}Preview removing what a template or standalone asset of this factory applied to an LE target.
miravo_session<token>Session cookie returned by POST /api/auth/login.
application/json- body
targetId*string1 <= lengthscope?array<>templateId*string1 <= lengthPreview removing what a template or standalone asset of this factory applied to an LE target.
application/json- response
plan*curl -X POST 'https://example.com/api/integrations/le/cleanup/plan' \ -H 'Content-Type: application/json' \ -d '{ "targetId": "string", "templateId": "string"}'{ "plan": { "sourceMode": "static", "targetHost": "string", "sourceHostname": "string", "scope": [ "devices" ], "filters": { "area": "string", "line": "string", "asset": "string" }, "entries": [ { "action": "create", "resourceType": "device", "name": "string", "resourceId": "string", "protocol": "mqtt", "endpoint": "string", "detail": "string", "blockReason": "string" } ] }}Remove what a template or standalone asset of this factory applied to an LE target.
miravo_session<token>Session cookie returned by POST /api/auth/login.
application/json- body
targetId*string1 <= lengthscope?array<>templateId*string1 <= lengthRemove what a template or standalone asset of this factory applied to an LE target.
application/json- response
plan*deleted*integer0 <= valuefailed*integer0 <= valueerror?string1 <= lengthcurl -X POST 'https://example.com/api/integrations/le/cleanup' \ -H 'Content-Type: application/json' \ -d '{ "targetId": "string", "templateId": "string"}'{ "plan": { "sourceMode": "static", "targetHost": "string", "sourceHostname": "string", "scope": [ "devices" ], "filters": { "area": "string", "line": "string", "asset": "string" }, "entries": [ { "action": "create", "resourceType": "device", "name": "string", "resourceId": "string", "protocol": "mqtt", "endpoint": "string", "detail": "string", "blockReason": "string" } ] }, "deleted": 0, "failed": 0, "error": "string"}Cancel an in-flight streaming LE operation.
miravo_session<token>Session cookie returned by POST /api/auth/login.
operationId*string1 <= lengthCancel an in-flight streaming LE operation.
application/json- response
cancelled*truetruecurl -X POST 'https://example.com/api/integrations/le/operations/string/cancel'{ "cancelled": true}Stream LE apply progress over SSE.
miravo_session<token>Session cookie returned by POST /api/auth/login.
application/json- body
targetId*string1 <= lengthprotocol?string"mqtt""opcua""modbus"scope?array<>ifUnmanaged?string"fail""skip"exposedPorts?templateId*string1 <= lengthStream LE apply progress over SSE.
response?stringtext/event-streamcurl -X POST 'https://example.com/api/integrations/le/apply/stream' \ -H 'Content-Type: application/json' \ -d '{ "targetId": "string", "templateId": "string"}'"event: started\\ndata: {...}\\n\\n"Stream LE cleanup progress over SSE.
miravo_session<token>Session cookie returned by POST /api/auth/login.
application/json- body
targetId*string1 <= lengthscope?array<>templateId*string1 <= lengthStream LE cleanup progress over SSE.
response?stringtext/event-streamcurl -X POST 'https://example.com/api/integrations/le/cleanup/stream' \ -H 'Content-Type: application/json' \ -d '{ "targetId": "string", "templateId": "string"}'"event: started\\ndata: {...}\\n\\n"
Miravo