---
title: "Update Workflow Status"
method: PUT
path: "/api/v1/workflow/{workflow_id}/status"
tags: ["main"]
---

# Update Workflow Status

`PUT /api/v1/workflow/{workflow_id}/status`

Update the status of a workflow (e.g., archive/unarchive).

Args:
    workflow_id: The ID of the workflow to update
    request: The status update request

Returns:
    The updated workflow

## Path parameters

- `workflow_id` integer, required

## Headers

- `authorization` string, nullable
- `X-API-Key` string, nullable

## Request body

- UpdateWorkflowStatusRequest
  - `status` string, required

## Response `200`

Successful Response

- WorkflowResponse
  - `id` integer, required
  - `name` string, required
  - `status` string, required
  - `created_at` string, date-time, required
  - `workflow_definition` object, required
  - `current_definition_id` integer, nullable, required
  - `template_context_variables` object, nullable
  - `call_disposition_codes` CallDispositionCodes
    - `disposition_codes` string[]
  - `total_runs` integer, nullable
  - `workflow_configurations` object, nullable
  - `version_number` integer, nullable
  - `version_status` string, nullable
  - `workflow_uuid` string, nullable

## Other responses

- `404` — Not found
- `422` — Validation Error

---

[API](https://skmtc.dev/dograh/apis/dograh-api.md) · [All operations](https://skmtc.dev/dograh/apis/dograh-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dograh/dograh-api/revisions/e7d045c0295a/schema)
