Edit this page

ModifyPolicyId

{
  "topic": "org.eclipse.ditto/fancy-thing/things/twin/commands/modify",
  "headers": {
    "correlation-id": "<command-correlation-id>"
  },
  "path": "/policyId",
  "value": "org.eclipse.ditto:the_policy_id"
}

ModifyPolicyIdResponse

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

ModifyPolicyIdResponse when Thing had no Policy ID yet

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

PolicyIdCreated

{
  "topic": "org.eclipse.ditto/fancy-thing/things/twin/events/created",
  "headers": {
    "correlation-id": "<preserved-command-correlation-id>"
  },
  "path": "/policyId",
  "value": "org.eclipse.ditto:the_policy_id",
  "revision": 1
}

PolicyIdModified

{
  "topic": "org.eclipse.ditto/fancy-thing/things/twin/events/modified",
  "headers": {
    "correlation-id": "<preserved-command-correlation-id>"
  },
  "path": "/policyId",
  "value": "org.eclipse.ditto:the_policy_id",
  "revision": 1
}