Update Redirection Host
update_redirection_hostModify writable settings on an existing redirection host by ID to change domains, destination, or redirect behavior, with dry_run previewing the NPM request before changes.
Instructions
Update writable settings on an existing redirection host by ID. Use this to change domains, destination, or redirect behavior; use enable_redirection_host or disable_redirection_host for status only. NPM receives the merged writable fields. Returns the updated host object with its redirect settings. Set dry_run=True to preview the exact request without changing NPM.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the redirection host, from the matching list tool. | |
| dry_run | No | When True, return the exact request preview without changing NPM. | |
| ssl_forced | No | Whether NPM redirects HTTP requests to HTTPS. For updates, omit to keep the current value. | |
| domain_names | No | Domain names routed by this host or certificate. For updates, omit to keep the current value. | |
| preserve_path | No | Whether to preserve the original request path in the redirect. For updates, omit to keep the current value. | |
| block_exploits | No | Whether NPM enables its exploit-blocking option. For updates, omit to keep the current value. | |
| certificate_id | No | NPM certificate ID to attach. Omit to keep the current value. | |
| forward_scheme | No | Scheme of the redirect destination: http or https. For updates, omit to keep the current value. | |
| forward_http_code | No | HTTP redirect status: 301, 302, 307, or 308. For updates, omit to keep the current value. | |
| forward_domain_name | No | Destination hostname or URL for redirected requests. For updates, omit to keep the current value. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||