POST api/2.0/mail/filters
Creates a new filter with the parameters specified in the request.
Name |
Description |
Type |
Example |
filter
sent in body
|
Filter parameters: ID, name, position, enabled, conditions, actions, options
|
ASC.Mail.Data.Contracts.MailSieveFilterData
|
|
POST 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
}
}
}