Actions114
- Instance Actions
- Message Actions
- Group Actions
- Chat Actions
- Profile Actions
- Event Actions
- Integration Actions
- Call Actions
- Label Actions
- OpenAI Actions
- N8N Integration Actions
- EvoAI Actions
- Template Actions
- Business Actions
N8N Integration → Change Workflow Status
AI-generatedOverview
This node interacts with the n8n API to change the status of a specified workflow within an n8n instance. It is useful for automating workflow management tasks such as enabling or disabling workflows programmatically. For example, a user can disable a workflow during maintenance or enable it after updates automatically.
Use Case Examples
- Change the status of a workflow to 'enabled' to activate it.
- Disable a workflow by changing its status to 'disabled'.
Properties
| Name | Meaning |
|---|---|
| Instance Name | The name of the n8n instance where the workflow exists, used to identify the target instance for the status change. |
| Workflow ID | The unique identifier of the workflow whose status is to be changed. |
| Status | The new status to set for the workflow, either 'enabled' or 'disabled'. |
Output
JSON
status- The updated status of the workflow after the operation.workflowId- The ID of the workflow whose status was changed.instanceName- The name of the instance where the workflow status was changed.
Dependencies
- Requires an API key credential for authenticating with the n8n API instance.
Troubleshooting
- Common issues include providing an incorrect instance name or workflow ID, which will result in errors indicating the workflow or instance could not be found.
- Errors may also occur if the API key credential is invalid or lacks sufficient permissions to change workflow statuses.
- Ensure the status value is either 'enabled' or 'disabled' as other values are not supported.