{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-ansible-automation-platform/json-schema/red-hat-ansible-automation-platform-patched-access-policy-schema.json",
  "title": "PatchedAccessPolicy",
  "description": "Serializer for AccessPolicy.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-ansible-automation-platform-access-policies-api-openapi.yml#/components/schemas/PatchedAccessPolicy",
  "type": "object",
  "properties": {
    "permissions_assignment": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "List of callables that define the new permissions to be created for new objects.This is deprecated. Use `creation_hooks` instead."
    },
    "creation_hooks": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "List of callables that may associate user roles for new objects."
    },
    "statements": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "List of policy statements defining the policy."
    },
    "queryset_scoping": {
      "type": "object",
      "description": "A callable for performing queryset scoping. See plugin documentation for valid callables. Set to blank to turn off queryset scoping."
    }
  }
}