Evolution API icon

Evolution API

Interact with Evolution API

Actions114

N8N Integration → Change Workflow Status

AI-generated

Overview

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

  1. Change the status of a workflow to 'enabled' to activate it.
  2. 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.

Discussion