Edit this page

Merge thing command at /definition

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

Merge thing command response at /definition

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

Thing merged event at /definition

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

Merge thing command deleting /definition

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