IGraphClient.CreateOrUpdateOverride

CreateOrUpdateOverride(MailAddress, ClassificationType)

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)
ParameterTypeDescription
senderMailAddressEmail address information of the sender for whom the override is created.
classifyAsClassificationTypeValue which specifies how incoming messages from a specific sender should always be classified as.

See Also


CreateOrUpdateOverride(ClassificationOverride)

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)
ParameterTypeDescription
classificationOverrideClassificationOverride

See Also