Creating multiple workflows in a single project via API

Describe the problem/error/question

I’m attempting to programmatically create workflows and assign them to projects using the n8n API, but consistently encountering errors. I’ve created automation scripts that need to create workflows in specific projects, but the API seems to reject any attempt to include project assignment in the request.

I’ve tried multiple approaches:

  1. Creating workflows with a shared property that includes the project ID
  2. Creating workflows with an owner property set to the team/project
  3. Creating workflows first and then updating them to add project assignment
  4. Using the project-specific endpoint /api/v1/projects/{projectId}/workflows

All these approaches have failed with the error “request/body must NOT have additional properties” or “not found” for the project endpoint.

Is there any working API method to create workflows directly in a specific project? Has anyone found a workaround for this yet? Is it in the pipeline in a N8N version planned?

What is the error message (if any)?

When trying to create a workflow with project assignment:

Error creating workflow: Request failed with status code 400
Error details: { message: 'request/body must NOT have additional properties' }

When trying to update a workflow to add project assignment:

{"message":"request/body must NOT have additional properties"}

When trying to use the project-specific endpoint:

{"message":"not found"}

Please share your workflow

N/A - This is an API issue, not a specific workflow issue.

Share the output returned by the last node

N/A

Information on your n8n setup

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