Enable or disable a filter
POST/api/accounts/:accountId/sieve/filters/:filterId/enable
Turns one filter on or off without changing anything else about it, and returns the updated filter. The body field is enable (not enabled) and must be a boolean.
A disabled filter stays in the list and keeps its position, but is left out of the active rules in the Sieve script, which is rewritten and activated.
Request
Responses
- 200
- 400
- 401
- 404
- 424
Updated filter.
Request failed.
The session has no mailbox access token. code is mail_token_missing; sign in again.
The account or the filter does not exist.
The IMAP, SMTP or Sieve server, or the platform, refused the request or could not be reached.