> ## 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.

# Create Variant

> Creates a new variant under the product. Requires `products.update`.



## OpenAPI

````yaml /api-reference/openapi/EvoAI-CRM-Service/variants.yaml post /api/v1/products/{product_id}/variants
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:
    parameters:
      - name: product_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
    post:
      summary: Create Variant
      description: Creates a new variant under the product. Requires `products.update`.
      operationId: create-variant
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - variant
              properties:
                variant:
                  type: object
                  required:
                    - name
                  properties:
                    name:
                      type: string
                      example: Pro
                    sku:
                      type: string
                    price_override:
                      type: number
                      format: float
                    stock_quantity:
                      type: integer
                    position:
                      type: integer
                    attributes_data:
                      type: object
                      additionalProperties: true
      responses:
        '201':
          description: Variant created 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.