Actions118
- Mailbox Management Actions
- Mailboxes Actions
- Mailboxes > Accesses > Devices Actions
- Mailboxes > Accesses > Invitations Actions
- Mailboxes > Accesses > Webmail Actions
- List User Access And Invitations
- Create Webmail Access
- Set The Primary Mailbox For The Authenticated User
- List Users Having Access
- List Of User Accesses For The Current User
- List Of User Accesses For A Account And A User
- Update Webmail Access
- Delete Webmail Access
- Delete Access To A Mailbox For The Current User
- Mailboxes > Aliases Actions
- Mailboxes > Auto Reply Actions
- Mailboxes > Folders Actions
- Mailboxes > Forwarding Actions
- Mailboxes > Sieve Filters Actions
- Mailboxes > Signatures Actions
- Mailboxes > Users Actions
- Mailing List Actions
- Mailing List > Subscribers Actions
- Service Mail > Auto Reply Actions
- Service Mail > Bimi Actions
- Service Mail > Filters Models Actions
- Service Mail > Preferences Actions
- Service Mail > Redirections Actions
- Service Mail > Redirections > Target Actions
- Service Mail > Signatures Templates Actions
Service Mail > Redirections → Update Redirection
AI-generatedSummary
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}