Get Started
Portal api methods
Help

PUT api/2.0/mail/filters This function requires authentication

Description

Updates the selected filter

Parameters
Name Description Type Example
filter
sent in body
ASC.Mail.Data.Contracts.MailSieveFilterData
Example
PUT api/2.0/mail/filters
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "filter": {
    "id": 0,
    "name": null,
    "position": 0,
    "enabled": false,
    "conditions": [],
    "actions": [],
    "options": {
      "matchMultiConditions": 0,
      "applyTo": {
        "folders": [
          1
        ],
        "mailboxes": [],
        "withAttachments": 0
      },
      "ignoreOther": false
    }
  }
}
Returns

Updated filter