---
title: "PATCH /api/automation/workflows/{workflow_id}/"
method: PATCH
path: "/api/automation/workflows/{workflow_id}/"
tags: ["Automation workflows"]
---

# PATCH /api/automation/workflows/{workflow_id}/

`PATCH /api/automation/workflows/{workflow_id}/`

Updates an existing workflow of an automation.

## Path parameters

- `workflow_id` integer, required

## Headers

- `ClientSessionId` string, uuid

## Request body

- PatchedUpdateAutomationWorkflow
  - `name` string
  - `allow_test_run` boolean — If provided, enables the workflow to be triggerable for the next 5 minutes.
  - `state` 'draft' | 'live' | 'paused' | 'disabled' | 'test_clone' — * `draft` - Draft * `live` - Live * `paused` - Paused * `disabled` - Disabled * `test_clone` - Test Clone
  - `notification_recipient_ids` integer[] — The user IDs of the workspace members that should receive notifications related to this workflow.

## Response `200`

- AutomationWorkflow
  - `id` integer, required
  - `name` string, required
  - `order` integer, required — Lowest first.
  - `automation_id` integer, required
  - `allow_test_run_until` string, date-time, nullable
  - `simulate_until_node_id` integer, nullable, required — When set, upon the next workflow run, simulates the dispatch of the workflow until this node and updates the sample_data of the node's service.
  - `published_on` string, required
  - `state` string, required
  - `graph` unknown
  - `notification_recipient_ids` integer[], required
  - `immediate_dispatch` boolean, required

## Other responses

- `400`
- `404`

---

[API](https://skmtc.net/baserow/apis/baserow-api-spec.md) · [All operations](https://skmtc.net/baserow/apis/baserow-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baserow/baserow-api-spec/revisions/0c490e5b0c7f/schema)
