Error creating workflow by API when node uses expression

Describe the issue/error/question

I’m creating a workflow to create other workflows using the n8n API. When the nodes of the workflow that I want to create by the API doesn’t have expressions everything works fine, but when I add an expression to a node parameter I get a Bad Request response.

What is the error message (if any)?

“ERROR: Bad request - please check your parameters”

Please share the workflow

Information on your n8n setup

  • n8n version: 0.209.2
  • Database you’re using (default: SQLite): SQLite
  • Running n8n via Docker, npm, n8n.cloud, desktop app]: Docker

Hi @lqdominguez, this would be because n8n itself would recognize{{ $json[\"parent\"][\"database_id\"] }} as an expression and try to resolve it (ultimately leading to an invalid request).

If you don’t have any dynamic values in your workflow, perhaps you can simply use a fixed value in your HTTP Request node in order to create a workflow including expressions?

1 Like

Thanks a lot @MutedJam, I had dynamic values in my workflow, but I added a set node to add the expressions as fixed strings and it worked fine.

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