---
title: "Publish a variant"
method: POST
path: "/api/v1/variants/{id}/publish"
tags: ["Variants"]
---

# Publish a variant

`POST /api/v1/variants/{id}/publish`

## Request

- Base URL: `https://app.convertflow.co`
- URL: `https://app.convertflow.co/api/v1/variants/{id}/publish`
- Auth: HTTP bearer

Queues a publish of the variant's draft changes to the live campaign script (a backup is taken first). Returns 202 with a queued acknowledgement, not the variant — read GET /api/v1/variants/{id} to see `unpublished` flip to false once the job runs. Requires variants:publish.

## Response `202`

publish queued

- object
  - `status` string
  - `code` integer
  - `message` string

---

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