Edit this page

ModifyPolicyEntries

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

ModifyPolicyEntriesResponse

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