update_redirect
Modify an existing redirect rule by ID in Paperboy CMS, updating source, target, status, or note while leaving omitted fields unchanged.
Instructions
Update a redirect rule by id (from list_redirects). Same fields and rules as create_redirect; omitted fields are unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The rule's id from list_redirects. | |
| note | No | Free-text note for editors, e.g. 'old WordPress URL'. | |
| site | No | Site slug or id to act in (multisite). Omit to use this server's default site. Call list_sites to see what exists — an empty tree or search usually means the wrong site, not missing content. | |
| source | No | Old path ('/old-page'), prefix ('/blog/*') or full URL on the old site. | |
| status | No | 301 permanent (default), 302/307 temporary, 308 permanent, 410 gone (no target). | |
| target | No | Destination path or https:// URL. Use this OR targetDocumentId. | |
| keepQuery | No | Carry the request's query string over to the target. | |
| targetLocale | No | Locale of targetDocumentId to send visitors to. Omit for the site default. | |
| targetDocumentId | No | documentId of the destination page; the rule follows it if it moves. Use this OR target. |