Type
|
Create
|
List
|
Pages
|
URL
|
http://{domain}/api/v2/pages/create_redirect.json
|
Accepts Filters
|
No
|
Output Attributes
|
No
|
Create Page Redirects
Allows the creation of page redirects as needed, for example, in the case of site migration- converting old urls to the new ones. These parameters are used for creating Lead Commerce Page Redirects.
Parameter
|
Type
|
Required
|
Notes
|
Example
|
old
|
string
|
Yes
|
The URL of the old page to redirect.
|
/myoldpage.php?page=3&view=8
|
new
|
string
|
No
|
If left blank, it will redirect to the homepage.
|
/my/newpage.html
|
Response
Example JSON returned
{
"code": "200",
"data": "1"
}