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

# Enable or disable a product

> Change whether a synced product is available in the fitting room without deleting it.



## OpenAPI

````yaml openapi.yaml PUT /vfr/manage/sites/{site_id}/products/{product_id}/enabled
openapi: 3.1.0
info:
  title: virtual.fit API
  version: 2.0.0
  description: Catalog sync, storefront fit evidence, and product recommendation endpoints.
servers:
  - url: https://api.virtual.fit
security:
  - bearerAuth: []
tags:
  - name: Catalog
  - name: Storefront evidence
  - name: Recommendations
paths:
  /vfr/manage/sites/{site_id}/products/{product_id}/enabled:
    put:
      tags:
        - Catalog
      summary: Enable or disable a product
      description: |
        Changes whether the synced product can use the fitting room without
        deleting its product record or managed images. Disabled products remain
        in the product count but do not consume enabled-product slots.
      operationId: setCatalogProductEnabled
      parameters:
        - $ref: '#/components/parameters/SiteID'
        - $ref: '#/components/parameters/ProductID'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - enabled
              properties:
                enabled:
                  type: boolean
                  description: Whether the product can use the fitting room.
            examples:
              disable:
                summary: Disable a product
                value:
                  enabled: false
              enable:
                summary: Re-enable a product
                value:
                  enabled: true
      responses:
        '200':
          description: Product state updated.
          content:
            application/json:
              schema:
                type: object
                required:
                  - product
                properties:
                  product:
                    type: object
                    description: Updated fitting-room product projection.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    SiteID:
      name: site_id
      in: path
      required: true
      description: Custom JavaScript site ID from virtual.fit.
      schema:
        type: string
        format: uuid
    ProductID:
      name: product_id
      in: path
      required: true
      description: >
        Stable, case-sensitive identity that remains unchanged when the
        product's

        title, URL, options, variants, price, or media change. URL-encode it in

        the request path.
      schema:
        type: string
        maxLength: 255
  responses:
    BadRequest:
      description: Invalid field or inconsistent catalog data.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: The API-key account cannot modify this site.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Site, product, variant, or recommendation context not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Keep the virtual.fit API key on your server.

````