{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "assignment-apply-request.schema.json",
  "title": "AssignmentApplyRequest",
  "type": "object",
  "required": ["assignments"],
  "properties": {
    "assignments": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["target"],
        "properties": {
          "target": {
            "type": "object",
            "required": ["@odata.type"],
            "properties": {
              "@odata.type": { "type": "string" },
              "groupId": { "type": "string" },
              "deviceAndAppManagementAssignmentFilterId": { "type": "string" },
              "deviceAndAppManagementAssignmentFilterType": {
                "type": "string",
                "enum": ["include", "exclude", "Include", "Exclude"]
              }
            },
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      }
    }
  },
  "additionalProperties": true
}
