Add old-link redirects
add_redirectsSend old addresses to new pages so links from search results, bookmarks and other sites keep working. Each item is { from, to, status? }: from is the old path (a full old URL is fine; a query such as ?id=7 is kept when it identifies the page), to a path on this site or a full URL elsewhere, status 301 (permanent, the default — use it unless the user asks otherwise) or 302/307/308. Re-adding an address replaces its destination. Up to 1,000 per call. On a published site the change is live within a minute or two; otherwise it applies at publish.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site, from list_sites | |
| redirects | Yes | ||
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. |