changeNotification resource type

Namespace: microsoft.graph

Represents the notification sent to the subscriber. All the properties of this resource are read-only.

For details, see Use Microsoft Graph to get change notifications.

Methods

None.

Properties

Property Type Description
changeType changeType Indicates the type of change that will raise the change notification. The supported values are: created, updated, deleted. Required.
clientState string Value of the clientState property sent in the subscription request (if any). The maximum length is 255 characters. The client can check whether the change notification came from the service by comparing the values of the clientState property. The value of the clientState property sent with the subscription is compared with the value of the clientState property received with each change notification. Optional.
encryptedContent changeNotificationEncryptedContent (Preview) Encrypted content attached with the change notification. Only provided if encryptionCertificate and includeResourceData were defined during the subscription request and if the resource supports it. Optional.
id string Unique ID for the notification. Optional.
lifecycleEvent lifecycleEventType The type of lifecycle notification if the current notification is a lifecycle notification. Optional. Supported values are missed, subscriptionRemoved, reauthorizationRequired. Optional.
resource String The URI of the resource that emitted the change notification relative to https://graph.microsoft.com. Required.
resourceData resourceData The content of this property depends on the type of resource being subscribed to. Optional.
subscriptionExpirationDateTime DateTimeOffset The expiration time for the subscription. Required.
subscriptionId Guid The unique identifier of the subscription that generated the notification.Required.
tenantId Guid The unique identifier of the tenant from which the change notification originated. Required.

Relationships

None.

JSON representation

The following JSON representation shows the resource type.

{
  "@odata.type": "#microsoft.graph.changeNotification",
  "changeType": "String",
  "clientState": "String",
  "encryptedContent": {
    "@odata.type": "microsoft.graph.changeNotificationEncryptedContent"
  },
  "id": "String (identifier)",
  "lifecycleEvent": "String",
  "resource": "String",
  "resourceData": {
    "@odata.type": "microsoft.graph.resourceData"
  },
  "subscriptionExpirationDateTime": "String (timestamp)",
  "subscriptionId": "Guid",
  "tenantId": "Guid"
}