Skip to main content

Update a filter

PUT 

/api/accounts/:accountId/sieve/filters/:filterId

Replaces a filter's definition and returns the updated filter. The body must be a complete filter, validated like create: name, conditions, actions, conditionJoin and stop are all taken from it (left-out conditionJoin and stop go back to their defaults). The id and position are kept, and enabled only changes when sent.

delete and spam actions get their folders filled in as on create, and the Sieve script is rewritten and activated.

Request​

Responses​

Updated filter.