{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-notification-message-template-schema.json",
  "title": "microsoft.graph.notificationMessageTemplate",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-graph-devicemanagement-notificationmessagetemplate-api-openapi.yml#/components/schemas/microsoft.graph.notificationMessageTemplate",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "notificationMessageTemplate",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "brandingOptions": {
          "$ref": "#/$defs/microsoft.graph.notificationTemplateBrandingOptions"
        },
        "defaultLocale": {
          "type": [
            "string",
            "null"
          ],
          "description": "The default locale to fallback onto when the requested locale is not available."
        },
        "displayName": {
          "type": "string",
          "description": "Display name for the Notification Message Template."
        },
        "lastModifiedDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": "string",
          "description": "DateTime the object was last modified.",
          "format": "date-time"
        },
        "roleScopeTagIds": {
          "type": "array",
          "items": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": "List of Scope Tags for this Entity instance."
        },
        "localizedNotificationMessages": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.localizedNotificationMessage"
          },
          "description": "The list of localized messages for this Notification Message Template.",
          "x-ms-navigationProperty": true
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "description": "Notification messages are messages that are sent to end users who are determined to be not-compliant with the compliance policies defined by the administrator. Administrators choose notifications and configure them in the Intune Admin Console using the compliance policy creation page under the “Actions for non-compliance” section. Use the notificationMessageTemplate object to create your own custom notifications for administrators to choose while configuring actions for non-compliance."
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.notificationMessageTemplate",
  "$defs": {
    "microsoft.graph.entity": {
      "title": "entity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.localizedNotificationMessage": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "localizedNotificationMessage",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "isDefault": {
              "type": "boolean",
              "description": "Flag to indicate whether or not this is the default locale for language fallback. This flag can only be set. To unset, set this property to true on another Localized Notification Message."
            },
            "lastModifiedDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": "string",
              "description": "DateTime the object was last modified.",
              "format": "date-time"
            },
            "locale": {
              "type": "string",
              "description": "The Locale for which this message is destined."
            },
            "messageTemplate": {
              "type": "string",
              "description": "The Message Template content."
            },
            "subject": {
              "type": "string",
              "description": "The Message Template Subject."
            },
            "@odata.type": {
              "type": "string"
            }
          },
          "description": "The text content of a Notification Message Template for the specified locale."
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.localizedNotificationMessage"
    },
    "microsoft.graph.notificationTemplateBrandingOptions": {
      "title": "notificationTemplateBrandingOptions",
      "enum": [
        "none",
        "includeCompanyLogo",
        "includeCompanyName",
        "includeContactInformation",
        "includeCompanyPortalLink",
        "includeDeviceDetails",
        "unknownFutureValue"
      ],
      "type": "string",
      "description": "Branding Options for the Message Template. Branding is defined in the Intune Admin Console.",
      "x-ms-enum-flags": {
        "isFlags": true
      },
      "x-ms-enum": {
        "name": "notificationTemplateBrandingOptions",
        "modelAsString": false,
        "values": [
          {
            "value": "none",
            "description": "Indicates that no branding options are set in the message template.",
            "name": "none"
          },
          {
            "value": "includeCompanyLogo",
            "description": "Indicates to include company logo in the message template.",
            "name": "includeCompanyLogo"
          },
          {
            "value": "includeCompanyName",
            "description": "Indicates to include company name in the message template.",
            "name": "includeCompanyName"
          },
          {
            "value": "includeContactInformation",
            "description": "Indicates to include contact information in the message template.",
            "name": "includeContactInformation"
          },
          {
            "value": "includeCompanyPortalLink",
            "description": "Indicates to include company portal website link in the message template.",
            "name": "includeCompanyPortalLink"
          },
          {
            "value": "includeDeviceDetails",
            "description": "Indicates to include device details in the message template.",
            "name": "includeDeviceDetails"
          },
          {
            "value": "unknownFutureValue",
            "description": "Evolvable enumeration sentinel value. Do not use.",
            "name": "unknownFutureValue"
          }
        ]
      }
    }
  }
}