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

# Update product variant details

> This endpoint updates the information of an existing product variant. Allowed fields include `name`, `description`, `price`, and `is_active`. Proper authentication is ensured with the `x-store-id` header and it supports updating only fields that are provided in the request body.



## OpenAPI

````yaml /api-reference/blink-api.json patch /v1/products/{id}/variants/{variantId}
openapi: 3.0.0
info:
  title: Blink API
  description: Comprehensive API documentation for Blink.
  version: 1.0.0
servers:
  - url: https://api.blink.store/v1
security:
  - storeIdHeader: []
tags:
  - name: Invoices
    description: Unified merchant of record invoices for products and subscriptions.
  - name: Geo Pricing
    description: Resolve Purchasing Power Parity (PPP) localized pricing.
paths:
  /v1/products/{id}/variants/{variantId}:
    patch:
      tags:
        - Products
      summary: Update product variant details
      description: >-
        This endpoint updates the information of an existing product variant.
        Allowed fields include `name`, `description`, `price`, and `is_active`.
        Proper authentication is ensured with the `x-store-id` header and it
        supports updating only fields that are provided in the request body.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: ID of the product.
        - name: variantId
          in: path
          required: true
          schema:
            type: string
          description: ID of the variant to update.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateProductVariantRequest'
      responses:
        '200':
          description: Variant details updated successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductVariantDetails'
        '400':
          description: Bad Request - No updatable fields provided.
        '401':
          description: Unauthorized - Store ID header missing.
        '404':
          description: Variant not found.
      security:
        - storeIdHeader: []
components:
  schemas:
    UpdateProductVariantRequest:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        price:
          type: number
        subscription_interval:
          type: string
        trial_days:
          type: integer
        is_active:
          type: boolean
        requires_license_key:
          type: boolean
        license_key_activation_limit:
          type: integer
    ProductVariantDetails:
      type: object
      properties:
        id:
          type: string
        product_id:
          type: string
        name:
          type: string
        description:
          type: string
        price:
          type: number
        subscription_interval:
          type: string
        trial_days:
          type: integer
        is_active:
          type: boolean
        requires_license_key:
          type: boolean
        license_key_activation_limit:
          type: integer
        created_at:
          type: string
          format: date-time
        deliverables:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              type:
                type: string
              title:
                type: string
              description:
                type: string
              url:
                type: string
              button_label:
                type: string
              created_at:
                type: string
                format: date-time
  securitySchemes:
    storeIdHeader:
      type: apiKey
      in: header
      name: x-store-id

````