# Policy

Type: Policy

Policy consisting of policy entries

Schema: [Policy](https://sourcey-ditto.pages.dev/http-api-doc/models/policy.md)

- `policyId` (required)
  Type: string
  
  Unique identifier representing the policy

- `entries` (required)
  Reference: [PolicyEntries](https://sourcey-ditto.pages.dev/http-api-doc/models/policyentries.md); Type: PolicyEntries
  
  Policy entries containing one policy entry for each arbitrary `label` key

- `imports` (optional)
  Reference: [PolicyImports](https://sourcey-ditto.pages.dev/http-api-doc/models/policyimports.md); Type: PolicyImports
  
  Policy imports containing one policy import for each key. The key is the policy ID of the referenced policy.
  
  Example:
  
  ```json
  {
    "com.acme:policyId1": {
      "entries": [
        "label1",
        "label2"
      ]
    },
    "com.acme:policyId2": {
      "entries": [
        "import"
      ]
    },
    "com.acme:policyId3": {}
  }
  ```