---
title: "Save And Execute Workflow"
method: POST
path: "/api/workflows/{workflow_id}/save-and-execute"
tags: ["Workflows"]
---

# Save And Execute Workflow

`POST /api/workflows/{workflow_id}/save-and-execute`

Update a workflow snapshot and immediately execute it in one request.

## Path parameters

- `workflow_id` string, required

## Request body

- WorkflowUpdate — Request model for updating a workflow
  - `name` string, nullable
  - `description` string, nullable
  - `nodes` WorkflowNode[], nullable
    - `id` string, required
    - `type` string, required
    - `position` object, required
    - `data` WorkflowNodeData, required — Configuration data for a workflow node
      - `label` string, required
      - `nodeType` string, nullable
  - `edges` WorkflowEdge[], nullable
    - `id` string, required
    - `source` string, required
    - `target` string, required
    - `sourceHandle` string, nullable
    - `targetHandle` string, nullable
  - `is_active` boolean, nullable
  - `is_template` boolean, nullable
  - `metadata_json` object, nullable
  - `project_id` string, nullable

## Response `200`

Successful Response

- ExecutionResponse — Response model for a workflow execution
  - `id` string, required
  - `workflow_id` string, required
  - `user_id` string, required
  - `status` string, required
  - `started_at` string, required
  - `completed_at` string, nullable, required
  - `result_data` object, nullable, required
  - `error_message` string, nullable, required
  - `execution_log` object[], required
  - `rows_processed` integer, required
  - `bytes_processed` integer, required
  - `execution_time_ms` integer, nullable, required
  - `metadata_json` object, required
  - `workflow_name` string, nullable
  - `workflow_snapshot` object, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/qomplement/apis/fastapi.md) · [All operations](https://skmtc.net/qomplement/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qomplement/fastapi/versions/718de1c0d866/schema)
