CreateOrUpdateOverride

IGraphClient.CreateOrUpdateOverride method (1 of 2)

Create an override for a sender identified by an SMTP address. Future messages from that SMTP address will be consistently classified as specified in the override. Note: - If an override already exists with the same SMTP address, then the classifyAs and name fields of that override are updated with the provided values. - The maximum number of overrides supported for a mailbox is 1000, based on unique sender SMTP addresses. Permissions: Delegated(work or school account) Mail.ReadWrite Delegated(personal Microsoft account) Mail.ReadWrite Application Mail.ReadWrite

public ClassificationOverride CreateOrUpdateOverride(MailAddress sender, 
    ClassificationType classifyAs)
Parameter Type Description
sender MailAddress Email address information of the sender for whom the override is created.
classifyAs ClassificationType Value which specifies how incoming messages from a specific sender should always be classified as.

See Also


IGraphClient.CreateOrUpdateOverride method (2 of 2)

Create an override for a sender identified by an SMTP address. Future messages from that SMTP address will be consistently classified as specified in the override. Note: - If an override already exists with the same SMTP address, then the classifyAs and name fields of that override are updated with the provided values. - The maximum number of overrides supported for a mailbox is 1000, based on unique sender SMTP addresses. Permissions: Delegated(work or school account) Mail.ReadWrite Delegated(personal Microsoft account) Mail.ReadWrite Application Mail.ReadWrite

public ClassificationOverride CreateOrUpdateOverride(ClassificationOverride classificationOverride)
Parameter Type Description
classificationOverride ClassificationOverride

See Also