Create redirect
create_redirectCreate a redirect for a blog. Requires manageBlog permission on the target blog. Blog-scoped API keys are supported.
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": {
"blogId": "<blogId>",
"source_path": "<source_path>",
"destination": "<destination>"
},
"name": "create_redirect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| active | No | Whether this redirect should be applied. | |
| blogId | Yes | Blog ID. Use list_blogs to discover available blog IDs. | |
| destination | Yes | Destination site path or absolute HTTP(S) URL. | |
| source_path | Yes | Incoming site path to redirect, starting with a single /. Query strings and fragments are not allowed. | |
| status_code | No | HTTP redirect status code. Use 301 for permanent redirects and 302 for temporary redirects. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |