Zum Inhalt
HALOWERK

Iotwerk

digital twin sync

Groups caller-supplied scalar field changes by field name, selects the highest version, and reports a conflict when equal-version values differ. It does not connect to a twin platform, merge nested documents or resolve semantic conflicts.

POST https://iot.halowerk.com/v1/digital-twin-sync

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
local_changesarrayJa
remote_changesarrayJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "local_changes",
    "remote_changes"
  ],
  "additionalProperties": false,
  "properties": {
    "local_changes": {
      "type": "array",
      "maxItems": 10000,
      "items": {
        "type": "object",
        "required": [
          "field",
          "value",
          "version"
        ],
        "additionalProperties": false,
        "properties": {
          "field": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "value": {
            "type": [
              "string",
              "number",
              "boolean",
              "null"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000000
          }
        }
      }
    },
    "remote_changes": {
      "type": "array",
      "maxItems": 10000,
      "items": {
        "type": "object",
        "required": [
          "field",
          "value",
          "version"
        ],
        "additionalProperties": false,
        "properties": {
          "field": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "value": {
            "type": [
              "string",
              "number",
              "boolean",
              "null"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000000
          }
        }
      }
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "local_changes": [
    {
      "field": "temperature_setpoint",
      "value": 21.5,
      "version": 8
    },
    {
      "field": "mode",
      "value": "eco",
      "version": 4
    }
  ],
  "remote_changes": [
    {
      "field": "temperature_setpoint",
      "value": 22,
      "version": 7
    },
    {
      "field": "mode",
      "value": "comfort",
      "version": 4
    }
  ]
}

Ergebnis & Dokumentation

Veröffentlichtes Ergebnisschema anzeigen
{
  "$ref": "https://iot.halowerk.com/v1/digital-twin-sync/schema#/outputSchema"
}

Veröffentlichtes Ergebnisbeispiel öffnen

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →