# Update a variant

URL: /en/docs/api/v1/variants/id/patch
Last Updated: 2026-07-30T21:15:30.467Z

## Description
No description available.

## Available Actions
- Execute PATCH request
- View request parameters
- View response schema
- Get code examples
- Navigate to related topics
- View step-by-step instructions
- Get best practices

## Content
### PATCH /api/v1/variants/{id}

**Update a variant**

Partially update a variant. Provide `translations` to diff localized titles (omit to leave unchanged, send `[]` to delete all). Options are not modified through this endpoint; use the option subresource endpoints instead.

**Authentication:** Bearer token (`Authorization: Bearer <token>`)

**Path parameters:**

| Name | Type | Required | Description |
|---|---|---|---|
| `id` | string | Yes |  |

**Request body** (`application/json`) - required:

- `title` (string)
- `slug` (string)
- `enabled` (boolean)
- `order` (integer): Lower numbers are displayed first.
- `translations` (array of VariantTranslationInput (object)): Omit to leave translations unchanged; send an empty array to delete all.
  - `languages_code` (enum: en-US | de-DE | fr-FR, required)
  - `title` (string, required)

Example (Rename and update translations):

```json
{
  "title": "Sector",
  "translations": [
    {
      "languages_code": "en-US",
      "title": "Sector"
    }
  ]
}
```

**Responses:**

- `200` - Variant updated
  - `success` (boolean)
  - `data` (object)
    - `variant` (Variant (object))
      - `id` (string)
      - `title` (string)
      - `slug` (string)
      - `enabled` (boolean)
      - `order` (integer)
      - `translations` (array of VariantTranslation (object))
        - `id` (string)
        - `languages_code` (enum: en-US | de-DE | fr-FR)
        - `title` (string)
      - `options` (array of VariantOption (object))
        - `id` (string)
        - `title` (string)
        - `slug` (string)
        - `enabled` (boolean)
        - `order` (integer)
        - `translations` (array of VariantTranslation (object))
          - `id` (string)
          - `languages_code` (enum: en-US | de-DE | fr-FR)
          - `title` (string)
- `400` - Bad Request - validation failed
- `401` - Unauthorized
- `404` - Variant not found
- `409` - Conflict - slug already exists
  - `error` (string)
- `500` - Internal server error

**Code samples:**

cURL:

```bash
curl -X PATCH "https://app.orbiqhq.com/api/v1/variants/var-123" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Sector",
    "translations": [
      { "languages_code": "en-US", "title": "Sector" }
    ]
  }'

```

