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

# Update product bundle

> Developer API operation for PATCH /dev/v1/products/bundles/{uniqid}.



## OpenAPI

````yaml /openapi.json patch /dev/v1/products/bundles/{uniqid}
openapi: 3.0.3
info:
  title: Shoppex Developer API
  description: Mintlify-compatible Developer API reference for Shoppex.
  version: 1.0.0
  contact:
    name: Shoppex Support
    email: support@shoppex.io
    url: https://shoppex.io
servers:
  - url: https://api.shoppex.io
security:
  - bearerAuth: []
paths:
  /dev/v1/products/bundles/{uniqid}:
    patch:
      tags:
        - Products
      summary: Update product bundle
      description: Developer API operation for PATCH /dev/v1/products/bundles/{uniqid}.
      operationId: patchDevV1ProductsBundlesByUniqid
      parameters:
        - name: uniqid
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - title
                - items
                - discount_type
                - discount_amount
              properties:
                title:
                  type: string
                  minLength: 1
                  maxLength: 120
                items:
                  type: array
                  minItems: 2
                  items:
                    type: object
                    required:
                      - product_id
                      - variant_id
                    properties:
                      product_id:
                        type: string
                        minLength: 1
                      variant_id:
                        type: string
                        format: uuid
                        nullable: true
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                discount_type:
                  type: string
                  enum:
                    - PERCENTAGE
                    - FIXED
                discount_amount:
                  anyOf:
                    - type: number
                    - type: string
                      minLength: 1
                active:
                  type: boolean
                  default: true
                priority:
                  type: integer
                  default: 100
                  minimum: 0
                  maximum: 10000
                max_applications_per_cart:
                  type: integer
                  default: null
                  nullable: true
                  minimum: 1
                  maximum: 9007199254740991
                starts_at:
                  default: null
                  anyOf:
                    - type: string
                    - type: string
                      nullable: true
                      enum:
                        - null
                ends_at:
                  default: null
                  anyOf:
                    - type: string
                    - type: string
                      nullable: true
                      enum:
                        - null
      responses:
        '200':
          description: Successful response
      deprecated: false
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Use your Shoppex API key in the Authorization header.

````

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