Infomaniak Mail icon

Infomaniak Mail

Interact with Infomaniak Mail API

Actions118

Service Mail > Redirections → Update Redirection

AI-generated

Summary

Update an existing mail redirection for a hosting account

Inputs

  • authentication — Authentication method: OAuth2 or API Key
  • path_mail_hosting_id (required) — Identifier of the mail hosting
  • path_redirection_id (required) — Identifier of the redirection to update
  • body_targets (required) — Targets configuration as JSON object
  • returnFullResponse — If true, the full response body is returned

Output shape

a single redirection object

Returns the updated redirection details; when returnFullResponse is true the complete API response is provided

Examples

Example 1: Update a redirection via OAuth2

authentication: oauth2, path_mail_hosting_id: 42, path_redirection_id: 7, body_targets: {"target": "https://new.example.com"}, returnFullResponse: true

Example 2: Update using API Key

authentication: apiKey, path_mail_hosting_id: 42, path_redirection_id: 7, body_targets: {"target": "https://new.example.com"}, returnFullResponse: false

Example 3: Modify a redirection

authentication: oauth2, path_mail_hosting_id: 42, path_redirection_id: 7, body_targets: {"active": false}

Links

Discussion