---
title: "Duplicate a Variant"
method: POST
path: "/variants/duplicate"
tags: ["Document"]
---

# Duplicate a Variant

`POST /variants/duplicate`

Creates a Variant resource.

## Request body

- VariantDuplicateVariantInput
  - `id` string

## Response `201`

Variant resource created

- VariantVariantOutputVariantOutput
  - `name` LanguageTranslation — This structure does accept key & values where key has to be a language code configured in your PIM & the value is the value for this field in this language.
    - `fr-FR` string
    - `en-US` string
  - `document` DocumentDocumentOutputVariantOutput
    - `documentType` string, iri-reference
    - `attributeSet` string, iri-reference, nullable
    - `classifications` ClassificationClassificationOutputVariantOutput[]
      - `id` string — This is the unique identifier of the resource
      - `legacyId` integer
    - `id` string — This is the unique identifier of the resource
    - `legacyId` integer
  - `active` boolean
  - `attributes` string[]
  - `sequence` integer, nullable
  - `assetLinks` string[]
  - `dateCreated` string, date-time, nullable — This is an ISO datetime
  - `dateModified` string, date-time, nullable — This is an ISO datetime
  - `id` string — This is the unique identifier of the resource
  - `legacyId` integer

## Other responses

- `400` — Invalid input
- `422` — Unprocessable entity

---

[API](https://skmtc.dev/quable/apis/quable-pim-api-documentation-v5.md) · [All operations](https://skmtc.dev/quable/apis/quable-pim-api-documentation-v5/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/quable/quable-pim-api-documentation-v5/revisions/1641096abb34/schema)
