Update Redirect
update_redirectModify 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "update_redirect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Redirect ID (MongoDB ObjectID),required | |
| to_path | No | Destination path or URL | |
| from_path | No | Source path | |
| description | No | Optional description | |
| status_code | No | 301 or 302 |