Update a Workflow using n8n API

Hello, how are you?

I have some workflows that I would like to edit part of using the N8N APIs. My question is, can I do this? Analyzing the APIs I only came across the PUT HTTP Request, which completely overrides the workflow.

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi,

You’re right - you need to provide the entire node graph to the Update a workflow endpoint. This means you could retrieve it first with the Retrieve Workflow endpoint, modifiy the data as needed and then post it back. The API is not meant to replace the editor, so it doesn’t provide the fine-grained access you’d need to manipulate individual nodes.

Hope this helps!