N8n API - Workflow creation (correct mapped JSON input + how to pass parameters)

Questions: (1) how to correctly map the JSON for workflow creation in the n8n API node & (2) how to edit a specific key value in the JSON body with a value from a previous node.

Here is a video explaining my exact questions.

Workflow:

Information on your n8n setup

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

hello @simo

I have one example that creates workflows based on the input. Check the Code node

1 Like

Thank you @barn4k - this helped me understand the logic for the implementation

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.