---
title: "Publish the draft (freezes it, supersedes the prior version, activates)"
method: POST
path: "/v1/apps/{id}/versions/{n}/publish"
tags: ["Apps"]
---

# Publish the draft (freezes it, supersedes the prior version, activates)

`POST /v1/apps/{id}/versions/{n}/publish`

## Request

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

No-ops when the draft's content hash matches the active version. First publish locks the slug.

## Path parameters

- `id` string, uuid, required
- `n` integer, required

## Response `200`

Published version summary.

## Other responses

- `409`: The request conflicts with the current resource state.

---

[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/678fe5f8c9c3?raw)
