{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/microsoft.graph.messageRule", "title": "microsoft.graph.messageRule", "allOf": [ { "$ref": "#/components/schemas/microsoft.graph.entity" }, { "title": "messageRule", "required": [ "@odata.type" ], "type": "object", "properties": { "actions": { "anyOf": [ { "$ref": "#/components/schemas/microsoft.graph.messageRuleActions" }, { "type": "object", "nullable": true } ], "description": "Actions to be taken on a message when the corresponding conditions are fulfilled." }, "conditions": { "anyOf": [ { "$ref": "#/components/schemas/microsoft.graph.messageRulePredicates" }, { "type": "object", "nullable": true } ], "description": "Conditions that when fulfilled trigger the corresponding actions for that rule." }, "displayName": { "type": "string", "description": "The display name of the rule.", "nullable": true }, "exceptions": { "anyOf": [ { "$ref": "#/components/schemas/microsoft.graph.messageRulePredicates" }, { "type": "object", "nullable": true } ], "description": "Exception conditions for the rule." }, "hasError": { "type": "boolean", "description": "Indicates whether the rule is in an error condition. Read-only.", "nullable": true }, "isEnabled": { "type": "boolean", "description": "Indicates whether the rule is enabled to be applied to messages.", "nullable": true }, "isReadOnly": { "type": "boolean", "description": "Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API.", "nullable": true }, "sequence": { "maximum": 2147483647, "minimum": -2147483648, "type": "number", "description": "Indicates the order in which the rule is executed, among other rules.", "format": "int32", "nullable": true }, "@odata.type": { "type": "string" } } } ], "x-ms-discriminator-value": "#microsoft.graph.messageRule" }