---
title: "Publish a Spec"
method: POST
path: "/v1/specs/{id}/publish"
tags: ["Specs"]
---

# Publish a Spec

`POST /v1/specs/{id}/publish`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/specs/{id}/publish`
- Auth: HTTP bearer

Publishes the draft as the next version and makes it the version new
runs use. Nothing is published when the draft has errors (422) or
when it has issues you have not acknowledged: the 422 lists them,
and you retry with `acknowledge_issues: true`. Send
`expected_draft_revision` to make sure you publish what you reviewed
(409 otherwise). When runs are in flight the version is published and
`activation_pending` is true until they finish.
Publishing an unchanged draft returns the current version.
Requires `specs:write`.

## Path parameters

- `id` string, uuid, required

## Request body

- SpecPublishRequest
  - `acknowledge_issues` boolean: Proceed over the issues a previous attempt listed.
  - `expected_draft_revision` integer: The draft revision you reviewed; a mismatch is a 409.

## Response `200`

Published.

- SpecPublishResult
  - `spec_id` string, uuid
  - `version` integer
  - `content_hash` string
  - `schema_id` string, uuid, nullable: The schema new runs use: pass it as `spec_id` to POST /v1/run, or as `schema_id` to POST /v1/pipelines.
  - `active` boolean: New runs use this version now.
  - `activation_pending` boolean: Published
  - `issues` object[]
  - `note` string, nullable
  - `links` object

## Other responses

- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.
- `409`: The request conflicts with the current resource state.
- `422`: The draft has errors

## Changes

- **2026-11-26** `622d429de7ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/specs/:id/publish/post.md)

---

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