update_redirect
Modify an existing URL redirect in LightCMS by updating source path, destination, status code, or description to maintain proper website navigation.
Instructions
Update an existing redirect.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | No | Optional description | |
| from_path | No | Source path | |
| id | Yes | Redirect ID (MongoDB ObjectID),required | |
| status_code | No | 301 or 302 | |
| to_path | No | Destination path or URL |