---
title: "Publish a workflow"
method: POST
path: "/workflows/{id}/publish"
tags: ["Workflows"]
---

# Publish a workflow

`POST /workflows/{id}/publish`

## Request

- Base URL: `https://api.flogpt.com/api/v1`
- URL: `https://api.flogpt.com/api/v1/workflows/{id}/publish`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Snapshots the current graph into the workflow's revision history, bumps
the patch version and sets it ACTIVE. Rejected unless the graph has at
least one node and both a START and an END node.

## Path parameters

- `id` string, required

## Response `200`

Published workflow

## Other responses

- `400`: The graph is not publishable

---

[API](https://skmtc.dev/flogpt/apis/flogpt-organization-api.md) · [All operations](https://skmtc.dev/flogpt/apis/flogpt-organization-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flogpt/apis/flogpt-organization-api/revisions/c3a6cff76797?raw)
