Edit this page

ModifyFeatures

{
  "topic": "org.eclipse.ditto/fancy-thing/things/twin/commands/modify",
  "headers": {
    "correlation-id": "<command-correlation-id>"
  },
  "path": "/features",
  "value": {
    "accelerometer": {
      "properties": {
        "x": 3.141,
        "y": 2.718,
        "z": 1,
        "unit": "g"
      },
      "desiredProperties": {
        "x": 4,
        "y": 3,
        "z": 5,
        "unit": "g"
      }
    }
  }
}

ModifyFeaturesResponse

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

FeaturesModified

{
  "topic": "org.eclipse.ditto/fancy-thing/things/twin/events/modified",
  "headers": {
    "correlation-id": "<preserved-command-correlation-id>"
  },
  "path": "/features",
  "value": {
    "accelerometer": {
      "properties": {
        "x": 3.141,
        "y": 2.718,
        "z": 1,
        "unit": "g"
      },
      "desiredProperties": {
        "x": 4,
        "y": 3,
        "z": 5,
        "unit": "g"
      }
    }
  },
  "revision": 1
}