I use the api on localhost for automated tests. I consider that as good practice. My workflow responds to a Webhook node. A Webhook has a url. I can set the url using its Path. All right. Now when my automated test updates the workflow the url changes by addin the id of the workflow as follows: http://localhost:5678/webhook/extraIdThatSucks/webhookSucksAlso/selectworkflow
My issue: I do not want the parts in the url that sucks.
Before the PUT I remove the id’s as follows: ```python
# Clean nodes to avoid n8n API errors
if “nodes” in workflow_for_update:
for node in workflow_for_update[“nodes”]:
if “id” in node:
node.pop(“id”, None)
if node.get(“type”) == “n8n-nodes-base.webhook” and “webhookId” in node:
node.pop(“webhookId”, None)