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

# Update a product image

> Updates image metadata such as `name`, `ordering`, `thumbnail`, or `enabled`. Setting `thumbnail` to true automatically clears the flag on the product's other images.



## OpenAPI

````yaml /api-reference/openapi.json patch /catalog/products/{product_pk}/image/{pk}/
openapi: 3.0.0
info:
  title: kelviq API
  version: 1.0.0
  description: >-
    API for interacting with kelviq services, derived from Python SDK
    documentation.
servers:
  - url: https://api.kelviq.com/api/v1
    description: kelviq API Server (General - specific operations might override)
security:
  - bearerAuth: []
tags:
  - name: Products
    description: Catalog products.
  - name: Product Settings
    description: Per-product settings (currency, VPN/Tor/proxy, product URL).
  - name: Product Files
    description: Product images and downloadable assets.
  - name: Features
    description: Catalog features that can be granted as plan entitlements.
  - name: Plans
    description: Catalog plans (CRUD, publish, versions, prices).
  - name: Plan Entitlements
    description: Feature entitlements attached to a plan.
  - name: Plan Files
    description: Files attached to plans, and signed download links.
  - name: Media
    description: Generate presigned S3 upload URLs for product/plan images and files.
  - name: Partner
    description: Partner integration APIs (organization provisioning, lookup).
  - name: Charges
    description: >-
      One-time payments charged immediately against a customer's default payment
      method.
paths:
  /catalog/products/{product_pk}/image/{pk}/:
    parameters:
      - name: product_pk
        in: path
        required: true
        description: Parent product UUID.
        example: 0d65f7c0-7e91-4f56-9b32-13a9a6a7c1de
        schema:
          type: string
          format: uuid
      - name: pk
        in: path
        required: true
        description: Image UUID.
        example: 1f7e1b54-7c6f-4d7e-9a4f-2c9c2d8b9d31
        schema:
          type: string
          format: uuid
    patch:
      tags:
        - Product Files
      summary: Update a product image
      description: >-
        Updates image metadata such as `name`, `ordering`, `thumbnail`, or
        `enabled`. Setting `thumbnail` to true automatically clears the flag on
        the product's other images.
      operationId: updateCatalogProductImage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProductImageUpdateRequest'
      responses:
        '200':
          description: Updated product image.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductImage'
        '401':
          description: Unauthorized — missing or invalid API key
      security:
        - bearerAuth: []
components:
  schemas:
    ProductImageUpdateRequest:
      type: object
      description: >-
        Editable fields on a product image. The underlying file cannot be
        changed; upload a new image instead.
      properties:
        name:
          type: string
          description: Display name.
          example: primary-hero.png
        ordering:
          type: integer
          description: Position in the gallery.
          example: 1
        thumbnail:
          type: boolean
          description: >-
            If `true`, marks this image as the product thumbnail and unsets the
            flag on other images.
          example: true
        enabled:
          type: boolean
          example: true
    ProductImage:
      type: object
      description: An image asset attached to a product.
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
          description: Unique identifier for the image.
          example: 1f7e1b54-7c6f-4d7e-9a4f-2c9c2d8b9d31
        name:
          type: string
          nullable: true
          description: Original filename or display name.
          example: hero-banner.png
        image:
          type: string
          readOnly: true
          description: Storage key / URL for the image asset.
          example: media/.../products/<id>/<uuid>/hero-banner.png
        ordering:
          type: integer
          description: Position of the image in the gallery.
          example: 0
        thumbnail:
          type: boolean
          description: If `true`, this image is used as the product thumbnail.
          example: true
        enabled:
          type: boolean
          description: If `true`, the image is shown publicly.
          example: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        The Server API Key obtained from the kelviq application. Pass as a
        Bearer token in the Authorization header. Example: 'Authorization:
        Bearer __YOUR_API_KEY__'

````