---
title: "Save a successful Code Mode run as a Workflow inside an OpenWork Connect Plugin"
method: POST
path: "/v1/workflows"
tags: ["Workflows"]
---

# Save a successful Code Mode run as a Workflow inside an OpenWork Connect Plugin

`POST /v1/workflows`

## Request body

- object
  - `pluginId` string — Existing OpenWork Connect Plugin that will contain and share this Workflow. Omit to use the member's private My Workflows Plugin.
  - `name` string, required
  - `description` string
  - `code` string, required
  - `currentInput` unknown
  - `inputSchema` unknown
  - `outputSchema` unknown

## Response `201`

Workflow saved.

- object
  - `pluginId` string, required
  - `configObjectId` string, required
  - `configObjectVersionId` string, required

## Other responses

- `400` — Invalid request.
- `403` — The caller cannot add Workflows to this Plugin.
- `404` — Plugin not found.

## Changes

> 24 revisions in range; 6 could not be searched.

- **2026-08-20** `93df40e2efd5` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/workflows/post.md)

---

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