---
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`

## Request

- Base URL: `https://api.qomplement.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.qomplement.com/api/workflows/{workflow_id}/save-and-execute`
- Auth: HTTP bearer

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

## Path parameters

- `workflow_id` string, required

## Query parameters

- `organization_id` string, nullable

## 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

## Changes

- **2026-09-09** `6fe617c112ef`: 2 info
  - added the new optional `query` request parameter `organization_id`
  - added the new optional request property `project_id`
- **2026-08-29** `7a7c8e2b5afc`: 1 warning
  - removed the request property `project_id`

[Operation history](https://skmtc.dev/qomplement/apis/qomplement-api/changes/api/workflows/:workflow_id/save-and-execute/post.md)

---

[API](https://skmtc.dev/qomplement/apis/qomplement-api.md) - [All operations](https://skmtc.dev/qomplement/apis/qomplement-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qomplement/apis/qomplement-api/revisions/6fe617c112ef?raw)
