Edit this page

Merge thing command at /attributes/location

{
  "topic": "org.eclipse.ditto/fancy-thing/things/twin/commands/merge",
  "headers": {
    "content-type": "application/merge-patch+json",
    "correlation-id": "<command-correlation-id>"
  },
  "path": "/attributes/location",
  "value": {
    "latitude": 44.673856,
    "longitude": 8.261719
  }
}

Merge thing command response at /attributes/location

{
  "topic": "org.eclipse.ditto/fancy-thing/things/twin/commands/merge",
  "headers": {
    "correlation-id": "<preserved-command-correlation-id>"
  },
  "path": "/attributes/location",
  "status": 204
}

Thing merged event at /attributes/location

{
  "topic": "org.eclipse.ditto/fancy-thing/things/twin/events/merged",
  "headers": {
    "content-type": "application/merge-patch+json"
  },
  "path": "/attributes/location",
  "value": {
    "latitude": 44.673856,
    "longitude": 8.261719
  },
  "revision": 42,
  "timestamp": "2021-01-18T09:42:12Z"
}

Merge thing command deleting /attributes/location

{
  "topic": "org.eclipse.ditto/fancy-thing/things/twin/commands/merge",
  "headers": {
    "content-type": "application/merge-patch+json",
    "correlation-id": "<command-correlation-id>"
  },
  "path": "/attributes/location",
  "value": null
}