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

# Duplicate a variant

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

## Request

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

Copies the variant (steps, sections, elements) into the same campaign at 0% traffic with the next variation letter. Nothing is published. Requires variants:write.

## Response `201`

copy created

- object
  - `id` integer
  - `campaign_id` integer
  - `name` string
  - `variation` string
  - `percentage` integer, nullable
  - `color` string
  - `screenshot` unknown
  - `score` integer
  - `score_field` unknown
  - `unpublished` boolean
  - `building` boolean
  - `build_failed` boolean
  - `behavior` object
    - `trigger_type` string
    - `delay` unknown
    - `scroll` unknown
    - `exit_delay` unknown
    - `aggressive` string
    - `hide` integer
    - `minutes_hide` unknown
  - `steps` unknown[]
    - unknown
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `has_custom_code` boolean

---

[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)
