---
title: "save a workflow"
method: POST
path: "/workflow"
tags: ["workflow"]
---

# save a workflow

`POST /workflow`

save a workflow

## Request body

- MainSaveWorkflowRequest
  - `workflow` ModelWorkflow
    - `create_time` string
    - `definition` string
    - `id` integer
    - `status` integer
    - `total_failed_instances` integer
    - `total_instances` integer
    - `total_running_instances` integer
    - `update_time` string
    - `version` string
    - `workflow_id` string
    - `workflow_name` string

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

---

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