Update redirect
update_redirectUpdates a redirect. Only the fields you pass are changed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"redirect": "<redirect>"
},
"name": "update_redirect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| active | No | Whether the redirect is active. Defaults to true. | |
| account | No | Account name or UUID to look for the redirect in. Searches all your accounts by default. | |
| redirect | Yes | The redirect's UUID, or its source host when that host has only one redirect. | |
| match_path | No | Path to match, with an optional trailing `*` for prefix matching. `*` (the default) matches every path. | |
| source_host | No | New source host. | |
| preserve_path | No | Append the request path to the destination URL. Defaults to true. | |
| redirect_type | No | `permanent` (301, the default) or `found` (302). | |
| destination_url | No | New destination URL. Must start with `http://` or `https://`. | |
| preserve_query_string | No | Append the query string to the destination URL. Defaults to true. |