---
title: "Update workflow"
method: PUT
path: "/api/v1/cwa/workflows/{id}"
tags: ["CWA"]
---

# Update workflow

`PUT /api/v1/cwa/workflows/{id}`

## Request

- Base URL: `https://toolkit.browserstack.com`
- URL: `https://toolkit.browserstack.com/api/v1/cwa/workflows/{id}`
- Auth: API key in cookie `_wdt_rails_session`

Update an existing workflow

## Request body

- object
  - `user_prompt` string: Updated user prompt for workflow generation
  - `collection_id` integer: Updated collection ID

## Response `200`

Workflow updated successfully

- object
  - `success` boolean
  - `message` string
  - `data` object
    - `id` integer
    - `collection_id` integer
    - `user_prompt` string
    - `status` string
    - `updated_at` string, date-time

## Other responses

- `404`: Workflow not found

---

[API](https://skmtc.dev/birdeatsbug/apis/wdt-rails-api.md) - [All operations](https://skmtc.dev/birdeatsbug/apis/wdt-rails-api/llms.txt) - [OpenAPI document](https://skmtc.dev/birdeatsbug/apis/wdt-rails-api/revisions/cbd06b547b6a?raw)
