in n8n UI - when I import a workflow which starts with something like the JSON below (partial sample), it just imports fine. But when I use the same JSON via the api to call the workflow creation api/v1/workflows and passing as POST message. I get error stating the additional fields are provided
{{"createdAt":"2025-08-15T13:45:11.896Z","updatedAt":"2025-08-15T14:43:52.484Z","id":"11u82un7GJy3Msmk","name":"Mult-Agents with tool","active":false,"isArchived":false,"nodes":[{"parameters":{"options":{}},"type":"@n8n/n8n-nodes-langchain.chatTrigger","typeVersion":1.3,"position":[-864,-112],"id":"e2d293b4-6cb1-426d-b14a-1edd18289548","name":"When chat message received","webhookId":"32a7b5…
I had to remove the following sections, to make it work. This is strange, it should work the same manner
Active:false
createdAt
id
isArchived
meta
shared
staticData
tags
triggerCount
updatedAt
versionId