Edit this page

ModifyResources

{
  "topic": "org.eclipse.ditto/the_policy_id/policies/commands/modify",
  "headers": {
    "correlation-id": "<command-correlation-id>"
  },
  "path": "/entries/the_label/resources",
  "value": {
    "thing:/the_resource_path": {
      "__schemaVersion": 2,
      "grant": [
        "READ",
        "WRITE"
      ],
      "revoke": []
    }
  }
}

ModifyResourcesResponse

{
  "topic": "org.eclipse.ditto/the_policy_id/policies/commands/modify",
  "headers": {
    "correlation-id": "<preserved-command-correlation-id>"
  },
  "path": "/entries/the_label/resources",
  "status": 204
}