curl --request POST \
--url https://services.leadconnectorhq.com/funnels/lookup/redirect \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"locationId": "6p2RxpgtMKQwO3E6IUaT",
"domain": "example.com",
"path": "/Hello",
"target": "https://www.google.com",
"action": "URL"
}
'{
"data": {
"id": "6p2RxpgtMKQwO3E6IUaT",
"locationId": "6p2RxpgtMKQwO3E6IUaT",
"domain": "www.example.com",
"path": "/old-path",
"pathLowercase": "/old-path",
"type": "Permanent",
"target": "https://www.example.com/new-path",
"action": "url"
}
}The “Create Redirect” API Allows adding a new url redirect to the system. Use this endpoint to create a url redirect with the specified details. Ensure that the required information is provided in the request payload.
curl --request POST \
--url https://services.leadconnectorhq.com/funnels/lookup/redirect \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"locationId": "6p2RxpgtMKQwO3E6IUaT",
"domain": "example.com",
"path": "/Hello",
"target": "https://www.google.com",
"action": "URL"
}
'{
"data": {
"id": "6p2RxpgtMKQwO3E6IUaT",
"locationId": "6p2RxpgtMKQwO3E6IUaT",
"domain": "www.example.com",
"path": "/old-path",
"pathLowercase": "/old-path",
"type": "Permanent",
"target": "https://www.example.com/new-path",
"action": "url"
}
}Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
Successful response
Show child attributes
Was this page helpful?