> ## Documentation Index
> Fetch the complete documentation index at: https://docs.evolutionfoundation.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Variant

> Updates a variant. Requires `products.update`.



## OpenAPI

````yaml /api-reference/openapi/EvoAI-CRM-Service/variants.yaml patch /api/v1/products/{product_id}/variants/{id}
openapi: 3.0.4
info:
  title: Evolution Foundation - CRM Service - Product Variants
  description: |
    Nested management of product variants (size, plan tier, color, etc.).

    Available starting `v1.0.0-rc3`. See also: `products.yaml`.
  version: 1.0.0
servers:
  - url: https://api.evoai.app
  - url: http://localhost:3000
security: []
paths:
  /api/v1/products/{product_id}/variants/{id}:
    parameters:
      - name: product_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
    patch:
      summary: Update Variant
      description: Updates a variant. Requires `products.update`.
      operationId: update-variant
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                variant:
                  type: object
                  properties:
                    name:
                      type: string
                    sku:
                      type: string
                    price_override:
                      type: number
                      format: float
                    stock_quantity:
                      type: integer
                    position:
                      type: integer
                    attributes_data:
                      type: object
                      additionalProperties: true
      responses:
        '200':
          description: Variant updated successfully
        '422':
          description: Validation error
      security:
        - userApiKey: []
components:
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.