Update Redirect By Id
The “Update Redirect By Id” API Allows updating an existing URL redirect in the system. Use this endpoint to modify a URL redirect with the specified ID using details provided in the request payload.
PATCH
/
funnels
/
lookup
/
redirect
/
{id}
Update Redirect By Id
curl --request PATCH \
--url https://services.leadconnectorhq.com/funnels/lookup/redirect/{id} \
--header 'Content-Type: application/json' \
--data '
{
"target": "https://www.google.com",
"action": "URL",
"locationId": "6p2RxpgtMKQwO3E6IUaT"
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
target: 'https://www.google.com',
action: 'URL',
locationId: '6p2RxpgtMKQwO3E6IUaT'
})
};
fetch('https://services.leadconnectorhq.com/funnels/lookup/redirect/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/funnels/lookup/redirect/{id}"
payload = {
"target": "https://www.google.com",
"action": "URL",
"locationId": "6p2RxpgtMKQwO3E6IUaT"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"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"
}
}{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}Body
application/json
Last modified on March 8, 2026
Was this page helpful?
Update Redirect By Id
curl --request PATCH \
--url https://services.leadconnectorhq.com/funnels/lookup/redirect/{id} \
--header 'Content-Type: application/json' \
--data '
{
"target": "https://www.google.com",
"action": "URL",
"locationId": "6p2RxpgtMKQwO3E6IUaT"
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
target: 'https://www.google.com',
action: 'URL',
locationId: '6p2RxpgtMKQwO3E6IUaT'
})
};
fetch('https://services.leadconnectorhq.com/funnels/lookup/redirect/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/funnels/lookup/redirect/{id}"
payload = {
"target": "https://www.google.com",
"action": "URL",
"locationId": "6p2RxpgtMKQwO3E6IUaT"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"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"
}
}{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}