Add a website redirect
create_redirectAdd a URL redirect rule to a website, sending one path to another. Use this when a page moves or a URL changes, so existing links keep working. Redirect rules take effect when the site is next published; publishing is a separate step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | The website these redirects belong to (id from list_sites). | |
| toPath | Yes | Where to send it: a path like "/pricing", or a full https:// URL for another site. With a wildcard source, ":splat" in this value is replaced by the matched remainder. | |
| fromPath | Yes | The path to redirect FROM, starting with "/", e.g. "/old-pricing". May end in "/*" to match everything beneath it, e.g. "/blog/*". | |
| statusCode | No | 301 for a permanent move (the default, and what search engines should follow), 302 for a temporary one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | Always states that the rule is not live until the site is published. | |
| siteId | Yes | ||
| toPath | Yes | ||
| fromPath | Yes | The stored path, after normalisation. | |
| wildcard | Yes | True when the source path ends in "/*", so it matches everything beneath it rather than one exact path. | |
| redirectId | Yes | ||
| statusCode | Yes | 301 permanent, 302 temporary. |