N8n API to activate a workflow throws unauth error

I am trying to activate a workflow using the n8n API. I am using the PATCH method for API https://thechange.app.n8n.cloud/rest/workflows/workflow-id, I also tried with https://thechange.app.n8n.cloud/api/v1/workflows/workflow-id/activate and passing the header X-N8N-API-KEY with the API key. I am getting the unauthorized error everytime in response.

Information on your n8n setup

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

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

I was able to figure it out kindly close this.

refer here: API reference | n8n Docs

1 Like

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