Skip to main content

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​

Updated filter.