Toggle a workflow’s enabled/disabled state.
cURL
curl --request PATCH \ --url https://api.example.com/api/v1/workflows/{workflow_id}/toggle
{ "id": "<string>", "account_id": "<string>", "name": "<string>", "description": "<string>", "trigger_type": "<string>", "trigger_config": {}, "steps": [ {} ], "enabled": true, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "created_by": "<string>" }
Successful Response