{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-cwztpsvc-ztp-device-policy-request-schema.json",
  "title": "cwztpsvcZtpDevicePolicyRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-cwztpdevice-api-openapi.yml#/components/schemas/cwztpsvcZtpDevicePolicyRequest",
  "type": "object",
  "properties": {
    "filter": {
      "$ref": "#/$defs/cwztpsvcZtpDevicePolicy"
    },
    "filterData": {
      "$ref": "#/$defs/cwztpsvcZtpFilterData"
    },
    "criteria": {
      "type": "string"
    },
    "limit": {
      "type": "integer",
      "format": "int32"
    },
    "page": {
      "type": "integer",
      "format": "int32"
    }
  },
  "$defs": {
    "cwztpsvcZtpDevicePolicy": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32",
          "title": "unique identifier"
        },
        "policyFields": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "all the policy fields"
        },
        "existingAttributes": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "title": "policy attributes that are exits in ztp"
        },
        "newAttributes": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "title": "policy attributes that are added to ztp"
        }
      }
    },
    "cwztpsvcZtpFilterData": {
      "type": "object",
      "properties": {
        "SortBy": {
          "type": "string"
        },
        "PageSize": {
          "type": "integer",
          "format": "int64"
        },
        "PageNum": {
          "type": "integer",
          "format": "int64"
        },
        "Descending": {
          "type": "boolean",
          "format": "boolean"
        },
        "MatchCase": {
          "type": "boolean",
          "format": "boolean"
        },
        "Criteria": {
          "type": "string"
        },
        "TotalCount": {
          "type": "integer",
          "format": "int64"
        }
      }
    }
  }
}