Infomaniak Mail icon

Infomaniak Mail

Interact with Infomaniak Mail API

Actions118

Mailboxes > Sieve Filters → Reorder Filters

AI-generated

Summary

Reorder the sieve filters for a specific mailbox and mail hosting.

Inputs

  • authentication (required) — Authentication method to use, either OAuth2 or API Key.
  • path_mail_hosting_id (required) — The ID of the mail hosting containing the mailbox.
  • path_mailbox_name (required) — The username (part before '@') of the email address whose filters are being reordered.
  • body_order (required) — A JSON object mapping filter names to their new order positions.
  • returnFullResponse — If true, the full API response is returned; otherwise only a success indicator is provided.

Output shape

A JSON object representing the updated sieve filters or a success confirmation.

When returnFullResponse is true the complete API response is returned; otherwise the operation returns a simple success/failure indicator.

Examples

Example 1: Reorder filters for a mailbox using API Key authentication

authentication: apiKey, path_mail_hosting_id: 12, path_mailbox_name: "john.doe", body_order: {"filterA": 1, "filterB": 2}, returnFullResponse: true

Links

Discussion