---
title: "Update a Variant. Warning: This is a beta endpoint, the payload / response can change"
method: PUT
path: "/variants/{id}"
tags: ["Document"]
---

# Update a Variant. Warning: This is a beta endpoint, the payload / response can change

`PUT /variants/{id}`

Replaces the Variant resource.

## Path parameters

- `id` string, required

## Headers

- `X-Quable-Locale` string

## Request body

- VariantVariantInputVariantInput
  - `id` string
  - `active` boolean
  - `document` EmbedDocumentInputVariantInput
    - `id` string
  - `attributes` unknown[] — In this example below, keys are corresponding to attribute control type
    - unknown

## Response `200`

Variant resource updated

- 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
- `404` — Resource not found
- `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)
