Create an email filter
POST {{baseUrl}}/emails/mailboxes/:email/settings/filters
Creates a message filter.
Scopes:
mail:write
Rate Limit Label
:
LIGHT
Not supported in Gov cluster
Request Body
{"action"=>{"addLabelIds"=>["<string>", "<string>"], "removeLabelIds"=>["<string>", "<string>"], "forward"=>"<string>"}, "criteria"=>{"from"=>"<string>", "to"=>"<string>", "subject"=>"<string>", "query"=>"<string>", "negatedQuery"=>"<string>", "hasAttachment"=>"<boolean>", "size"=>"<integer>", "sizeComparison"=>"smaller"}}
HEADERS
| Key | Datatype | Required | Description |
| Content-Type
| string | | |
| Accept
| string | | |
RESPONSES
status: OK
{"id":"\u003cstring\u003e","criteria":{"from":"\u003cstring\u003e","to":"\u003cstring\u003e","subject":"\u003cstring\u003e","query":"\u003cstring\u003e","negatedQuery":"\u003cstring\u003e","hasAttachment":"\u003cboolean\u003e","size":"\u003cinteger\u003e","sizeComparison":"larger"},"action":{"addLabelIds":["\u003cstring\u003e","\u003cstring\u003e"],"removeLabelIds":["\u003cstring\u003e","\u003cstring\u003e"],"forward":"\u003cstring\u003e"}}