Update
AI-generatedSummary
Updates a selected HubSpot CMS URL redirect. Choose its Redirect ID, then provide any route, destination, or redirect options to change; the node sends a PATCH request for that redirect.
Inputs
- Redirect ID (required) — Select the existing URL redirect to update.
- Route Prefix — New path or URL to match; must start with
/unless Match Full URL is enabled, which requires a full URL. Omit to leave unchanged. - Destination — New redirect target, as an absolute URL or relative path. Omit to leave unchanged.
- Redirect Style — HTTP status code: 301 (permanent), 302 (temporary), or 305 (proxy). Defaults to 301 in the UI and is sent when set.
- Match Full URL — Whether matching includes the domain. Defaults to false; the operation sends this value even when false.
- Match Query String — Whether matching includes query parameters. Defaults to false; the operation sends this value even when false.
- Only After 404 — Whether the redirect applies only when the original URL returns 404. Defaults to false; the operation sends this value even when false.
- Is Pattern (Regex) — Whether Route Prefix is treated as a regular expression. Defaults to false; the operation sends this value even when false.
- Protocol Relative — Whether matching ignores the HTTP or HTTPS protocol. Defaults to false; the operation sends this value even when false.
- Trailing Slash Optional — Whether matching accepts URLs with or without a trailing slash. Defaults to false; the operation sends this value even when false.
- Precedence — Priority when redirects overlap; lower numbers have higher priority. Defaults to 0 and is sent with the update.
Output shape
A single item containing the updated redirect returned by HubSpot.
The node sends the selected ID and all enabled option values. Because the boolean options default to false and precedence defaults to 0, those defaults are included in the PATCH even when not changed in the UI; blank route prefix, destination, and redirect style are omitted.
Examples
Example 1: Change the destination of an existing redirect while retaining its other settings.
Select the redirect by ID and enter a new Destination; leave Route Prefix and other fields blank or at their defaults.