createRedirect
Creates a URL redirect in Shopify from an old path to a new target, preserving traffic when pages or URLs change.
Instructions
Create a URL 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": {
"path": "<path>",
"target": "<target>"
},
"name": "createRedirect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The old path to redirect from | |
| target | Yes | The new path or URL to redirect to |