> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ocoya.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ocoya_toggle_workflow

> Enable or disable an Ocoya workflow.

# `ocoya_toggle_workflow`

Enables or disables an Ocoya workflow.

## Arguments

| Name         | Type    | Required | Description                             |
| ------------ | ------- | -------- | --------------------------------------- |
| `workflowId` | string  | Yes      | Ocoya workflow ID.                      |
| `on`         | boolean | Yes      | Whether the workflow should be enabled. |

## Example

```json theme={null}
{
  "name": "ocoya_toggle_workflow",
  "arguments": {
    "workflowId": "cmajvvb9q0003ja5vh0538j6r",
    "on": true
  }
}
```

## Returns

Returns the workflow ID and enabled state.
