Browse
The Get Landing Page Redirect Rules endpoint returns a list of landing page redirect rule records.
There are several optional query parameters that can be passed to filter results.
The offset
parameter is an integer that specifies the maximum number of entries to return (default is 20). Maximum is 200. The maxReturn
parameter is an integer that specifies where to begin retrieving entries. Can be used on conjunction with offset (default is 0).
The hostname
parameter can be used to filter on hostname of the landing pages.
The redirectToLandingPageId
is an integer that can be used to filter on the Id of landing page that you are redirecting to. The redirectToPath
can be used to filter on the path of the landing pages that you are redirecting to.
The earliestUpdatedAt
and latestUpdatedAt
parameters allow you to set low and high datetime watermarks for returning landing page redirect rules which were either updated or initially created within the given range.
GET /rest/asset/v1/redirectRules.json&maxReturn=3
{
"success": true,
"errors": [],
"requestId": "12213#1707b27efb5",
"warnings": [],
"result": [
{
"id": 5,
"redirectFromUrl": "https://www.kirtideep.contact/LandingPage2.html",
"hostname": "www.kirtideep.contact",
"redirectFrom": {
"type": "landingPageId",
"value": 5406
},
"redirectTo": {
"type": "landingPageId",
"value": 5404
},
"redirectToUrl": "https://www.kirtideep.contact/www.showLogs.com.html",
"createdAt": "2019-11-14T06:26:29Z+0000",
"updatedAt": "2019-11-14T06:26:29Z+0000"
},
{
"id": 6,
"redirectFromUrl": "https://www.kirtideep.contact/www.showLogs.com.html",
"hostname": "www.kirtideep.contact",
"redirectFrom": {
"type": "landingPageId",
"value": 5404
},
"redirectTo": {
"type": "url",
"value": "www.contactLogs.com"
},
"redirectToUrl": "www.contactLogs.com",
"createdAt": "2019-11-14T06:27:10Z+0000",
"updatedAt": "2019-11-14T06:27:10Z+0000"
},
{
"id": 7,
"redirectFromUrl": "https://www.kirtideep.contact/contact/log/check",
"hostname": "www.kirtideep.contact",
"redirectFrom": {
"type": "path",
"value": "/contact/log/check"
},
"redirectTo": {
"type": "landingPageId",
"value": 5404
},
"redirectToUrl": "https://www.kirtideep.contact/www.showLogs.com.html",
"createdAt": "2019-11-14T06:27:49Z+0000",
"updatedAt": "2019-11-14T06:27:49Z+0000"
}
]
}