POSTpi/2.0/mail/fileters函数需要认证

描述性

创建新滤波请求中指定的参数

参数解析
名称 描述性 类型 实例
滤波
寄送主体
滤镜参数:ID、名称、位置、启动性、条件、动作、选项 ASC.Mail.Data.Contracts.MailSieveFilterData
实例
POST api/2.0/mail/filters  Host: yourportal.onlyoffice.com  Content-Type: application/json  Accept: application/json    {    "filter": {      "id": 1,      "name": "name",      "position": 2,      "enabled": true,      "conditions": [        {          "key": 1,          "operation": 1,          "value": "value"        }      ],      "actions": [        {          "action": 1,          "data": "data"        }      ],      "options": [        {          "matchMultiConditions": 1,          "applyTo": {            "folders": [              1            ],            "mailboxes": [              1            ],            "withAttachments": 1          },          "ignoreOther": true        }      ]    }  }
回归

滤镜

实例响应

application/json

{    "status": 0,    "response": {      "id": 1,      "name": "name",      "position": 2,      "enabled": true,      "conditions": [        {          "key": 1,          "operation": 1,          "value": "value"        }      ],      "actions": [        {          "action": 1,          "data": "data"        }      ],      "options": [        {          "matchMultiConditions": 1,          "applyTo": {            "folders": [              1            ],            "mailboxes": [              1            ],            "withAttachments": 1          },          "ignoreOther": true        }      ]    }  }

文本/xml

        
         
          0
         
         
          
           一号
          
          
           名称
          
          
           2
          
          
           真实性
          
          
           
            一号
           
           
            一号
           
           
            传值
           
          
          
           
            一号
           
           数据显示
          
          
           
            一号
           
           
            
             一号
            
            
             一号
            
            
             一号
            
           
           
            真实性