---
title: "Toggle workflow enabled/disabled"
method: PATCH
path: "/api/v1/projects/{projectId}/workflows/{id}/toggle"
tags: ["Workflows"]
---

# Toggle workflow enabled/disabled

`PATCH /api/v1/projects/{projectId}/workflows/{id}/toggle`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/projects/{projectId}/workflows/{id}/toggle`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

A disabled workflow keeps its definition and stops being triggered.

## Path parameters

- `projectId` string, uuid, required
- `id` string, uuid, required

## Request body

- object

## Response `200`

OK

---

[API](https://skmtc.dev/railhook/apis/railhook-api.md) · [All operations](https://skmtc.dev/railhook/apis/railhook-api/llms.txt) · [OpenAPI document](https://skmtc.dev/railhook/apis/railhook-api/revisions/4e2c76dfc33d?raw)
