---
title: "PUT /base/{baseId}/workflow/{workflowId}/active"
method: PUT
path: "/base/{baseId}/workflow/{workflowId}/active"
tags: ["automation"]
---

# PUT /base/{baseId}/workflow/{workflowId}/active

`PUT /base/{baseId}/workflow/{workflowId}/active`

active or inactive a automation workflow

## Path parameters

- `baseId` string, required
- `workflowId` string, required

## Request body

- object
  - `method` 'activate' | 'deactivate' | 'discard', required — Method to update the workflow, activate: activate the workflow and apply any draft if exist, deactivate: deactivate the workflow, abort: abort the draft back to the last active workflow.

## Response `200`

Successful updated

---

[API](https://skmtc.net/teable/apis/teable-app.md) · [All operations](https://skmtc.net/teable/apis/teable-app/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/teable/teable-app/versions/7515f3b33d79/schema)
