{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-intune/json-schema/microsoft-intune-device-compliance-scheduled-action-for-rule-schema.json",
  "title": "deviceComplianceScheduledActionForRule",
  "description": "Scheduled action for a compliance rule.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-intune-device-compliance-policies-api-openapi.yml#/components/schemas/deviceComplianceScheduledActionForRule",
  "type": "object",
  "properties": {
    "@odata.type": {
      "type": "string",
      "default": "#microsoft.graph.deviceComplianceScheduledActionForRule"
    },
    "id": {
      "type": "string",
      "description": "Key of the entity."
    },
    "ruleName": {
      "type": "string",
      "description": "Name of the rule which this scheduled action applies to."
    },
    "scheduledActionConfigurations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/deviceComplianceActionItem"
      },
      "description": "The list of scheduled action configurations for this compliance policy."
    }
  },
  "$defs": {
    "deviceComplianceActionItem": {
      "type": "object",
      "description": "Scheduled action configuration.",
      "properties": {
        "@odata.type": {
          "type": "string",
          "default": "#microsoft.graph.deviceComplianceActionItem"
        },
        "id": {
          "type": "string",
          "description": "Key of the entity."
        },
        "gracePeriodHours": {
          "type": "integer",
          "format": "int32",
          "description": "Number of hours to wait till the action will be enforced."
        },
        "actionType": {
          "type": "string",
          "description": "What action to take.",
          "enum": [
            "noAction",
            "notification",
            "block",
            "retire",
            "wipe",
            "removeResourceAccessProfiles",
            "pushNotification"
          ]
        },
        "notificationTemplateId": {
          "type": "string",
          "description": "What notification message template to use."
        },
        "notificationMessageCCList": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of group IDs to specify who to CC this notification message to."
        }
      }
    }
  }
}