Bug Description
We are trying to streamline the process of deploying changes to existing workflows using the n8n API.
When calling:
PUT /api/v1/workflows/{workflowId}?publishIfActive=true
with a request body containing changes to the workflow nodes compared to the currently published version, the endpoint returns HTTP 200 OK. The updatedAt field is updated accordingly, indicating that the workflow was modified.
However, the published workflow content does not reflect the changes. The live version continues to use the previous node configuration.
Additionally, no new draft version appears to be created after the update.
Based on the API documentation, we expect the workflow update to create or update the workflow version and, when publishIfActive=true is specified for an already published workflow, automatically publish the updated version.
Expected behavior: The updated workflow content should become the published/live version.
Actual behavior: The API returns 200 OK and updates the updatedAt timestamp, but the published workflow content remains unchanged and no new draft version is visible.
Debug info
core
- n8nVersion: 2.35.4
- platform: docker (cloud)
- nodeJsVersion: 24.18.1
- nodeEnv: production
- database: sqlite