Import workflow via n8n API

Import workflow via n8n API

Import workflow via n8n API

Describe the problem/error/question

I want to create a workflow via n8n API and when i am trying to map workflow object, its getting error may be because of an extra [Object: is added before the JSON

What is the error message (if any)?

The ‘workflowObject’ property must be valid JSON, but cannot be parsed

Please share your workflow

Share the output returned by the last node

Hey @PRINCE_KUMAR1 hope all is good.

Try to limit the fields to

  • name
  • nodes
  • connections
  • settings

I tested it, just do:

{{ $json.final_data.toJsonString() }}

Mark as Solution if it helps :slight_smile:

2 Likes

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