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
- 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.