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

# Sync product variants

> Sync variants for a specific product based on attributes



## OpenAPI

````yaml /api-reference/openapi.json post /admin/api/v1/products/products/{product_id}/variants
openapi: 3.0.3
info:
  title: ARUKZ ERP API
  version: v1
  description: >-
    The REST API of ARUKZ ERP: sales, purchases, inventory, products, partners,
    accounts, projects and reference data. Every call acts as the user whose
    token it carries and sees only that user's company.
servers:
  - url: https://erp.arukz.com
    description: ARUKZ ERP (hosted)
security:
  - bearerAuth: []
tags:
  - name: Authentication
    description: Sign in for a token and sign out.
  - name: Sales
    description: Quotations, sales orders and their lines, deliveries and invoices.
  - name: Purchases
    description: Purchase orders, receipts, bills, agreements and vendor price lists.
  - name: Inventory
    description: >-
      Warehouses, locations, lots, stock quantities, receipts, deliveries,
      transfers and scrap.
  - name: Products
    description: 'The product catalogue: categories, attributes, variants and packaging.'
  - name: Partners
    description: Customers, vendors, contacts, addresses and bank accounts.
  - name: Accounts
    description: >-
      Invoices, bills, credit notes, refunds, taxes, journals and the chart of
      accounts.
  - name: Projects
    description: Projects, tasks, stages and milestones.
  - name: Reference data
    description: Currencies and rates, banks, countries, states and units of measure.
paths:
  /admin/api/v1/products/products/{product_id}/variants:
    post:
      tags:
        - Products
      summary: Sync product variants
      description: Sync variants for a specific product based on attributes
      operationId: products-product-variants-sync-product-variants
      parameters:
        - name: product_id
          in: path
          required: true
          schema:
            type: integer
            description: The product ID
            example: 1
          description: The product ID
      responses:
        '201':
          description: Created
          content:
            application/json:
              example:
                data:
                  - id: 1
                    type: goods
                    name: Big Vision 4K Action Camera
                    service_tracking: none
                    reference: Action-01
                    barcode: BV4K-0001
                    price: 150
                    cost: 100
                    volume: 0
                    weight: 1.2
                    description: >-
                      <p>A high-quality 4k action camera designed for everyday
                      use.</p><p>The <strong>4K Action Camera</strong> is
                      crafted with premium materials, ensuring durability and
                      functionality. Perfect for those who value quality and
                      innovation in their everyday essentials.</p>
                    description_purchase: null
                    description_sale: null
                    enable_sales: false
                    enable_purchase: false
                    is_favorite: false
                    is_configurable: true
                    images:
                      - 01JR9QKPXFKP1S054PZDM17MEP.png
                      - 01JR9QKPXPX1TJKCH0DMZ29M12.png
                    sort: null
                    parent_id: null
                    uom_id: 1
                    uom_po_id: 1
                    category_id: 11
                    creator_id: 1
                    company_id: 1
                    created_at: '2025-04-08T03:37:55.000000Z'
                    updated_at: '2025-09-23T07:28:33.000000Z'
                    deleted_at: null
                  - id: 1
                    type: goods
                    name: Big Vision 4K Action Camera
                    service_tracking: none
                    reference: Action-01
                    barcode: BV4K-0001
                    price: 150
                    cost: 100
                    volume: 0
                    weight: 1.2
                    description: >-
                      <p>A high-quality 4k action camera designed for everyday
                      use.</p><p>The <strong>4K Action Camera</strong> is
                      crafted with premium materials, ensuring durability and
                      functionality. Perfect for those who value quality and
                      innovation in their everyday essentials.</p>
                    description_purchase: null
                    description_sale: null
                    enable_sales: false
                    enable_purchase: false
                    is_favorite: false
                    is_configurable: true
                    images:
                      - 01JR9QKPXFKP1S054PZDM17MEP.png
                      - 01JR9QKPXPX1TJKCH0DMZ29M12.png
                    sort: null
                    parent_id: null
                    uom_id: 1
                    uom_po_id: 1
                    category_id: 11
                    creator_id: 1
                    company_id: 1
                    created_at: '2025-04-08T03:37:55.000000Z'
                    updated_at: '2025-09-23T07:28:33.000000Z'
                    deleted_at: null
                message: Product variants synced successfully.
        '401':
          description: Unauthenticated
          content:
            application/json:
              example:
                message: Unauthenticated.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An API token from [Sign in](/api-reference/authentication), sent as
        `Authorization: Bearer <token>`. Tokens last 30 days.

````

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