Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/v2023-01-24/reference/update_catalog_variant.md. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2023-01-24

You're reading the reference for API revision 2023-01-24. The latest revision is 2026-10-15. See this page in the latest revision.

Update Catalog Variant

PATCHhttps://a.klaviyo.com/api/catalog-variants/{id}/

Update a catalog item variant with the given variant ID.

Revision header
revision: 2023-01-24required
Scopes
Catalogs Write
Rate limits
Burst: 75/sSteady: 700/m

Path parameters

  • id#stringrequired

    The catalog variant ID is a compound ID (string), with format: {integration}:::{catalog}:::{external_id}. Currently, the only supported integration type is $custom, and the only supported catalog is $default.

    Example: $custom:::$default:::SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM

Headers

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2023-01-24

Request body

Content type: application/jsonrequired

  • data#objectrequired
    Show 3 fields
    • type#stringrequired
      Allowed values:
      • catalog-variant
    • id#stringrequired

      The catalog variant ID is a compound ID (string), with format: {integration}:::{catalog}:::{external_id}. Currently, the only supported integration type is $custom, and the only supported catalog is $default.

      Example: $custom:::$default:::SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM

    • attributes#objectrequired
      Show 11 fields
      • title#string

        The title of the catalog item variant.

        Example: Ocean Blue Shirt (Sample) Variant Medium

      • description#string

        A description of the catalog item variant.

        Example: Ocean blue cotton shirt with a narrow collar and buttons down the front and long sleeves. Comfortable fit and titled kaleidoscope patterns.

      • inventory_policy#integer

        This field controls the visibility of this catalog item variant in product feeds/blocks. This field supports the following values: 1: a product will not appear in dynamic product recommendation feeds and blocks if it is out of stock. 0 or 2: a product can appear in dynamic product recommendation feeds and blocks regardless of inventory quantity.

        Allowed values:
        • 0
        • 1
        • 2

        Example: 2

      • inventory_quantity#number

        The quantity of the catalog item variant currently in stock.

        Example: 25

      • price#number

        This field can be used to set the price on the catalog item variant, which is what gets displayed for the item variant when included in emails. For most price-update use cases, you will also want to update the price on any parent items using the Update Catalog Item Endpoint.

        Example: 42

      • url#string

        URL pointing to the location of the catalog item variant on your website.

        Example: https://via.placeholder.com/150

      • image_full_url#string

        URL pointing to the location of a full image of the catalog item variant.

        Example: https://via.placeholder.com/300

      • image_thumbnail_url#string

        URL pointing to the location of an image thumbnail of the catalog item variant.

        Example: https://via.placeholder.com/150

      • images#string[]

        List of URLs pointing to the locations of images of the catalog item variant.

      • custom_metadata#object

        Flat JSON blob to provide custom metadata about the catalog item variant. May not exceed 100kb.

      • published#boolean

        Boolean value indicating whether the catalog item variant is published.

        Example: true

Responses

200

Content type: application/json

  • data#objectrequired
    Show 4 fields
    • type#stringrequired
      Allowed values:
      • catalog-variant
    • id#stringrequired

      The catalog variant ID is a compound ID (string), with format: {integration}:::{catalog}:::{external_id}. Currently, the only supported integration type is $custom, and the only supported catalog is $default.

      Example: $custom:::$default:::SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM

    • attributes#objectrequired
      Show 15 fields
      • external_id#string

        The ID of the catalog item variant in an external system.

        Example: SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM

      • title#string

        The title of the catalog item variant.

        Example: Ocean Blue Shirt (Sample) Variant Medium

      • description#string

        A description of the catalog item variant.

        Example: Ocean blue cotton shirt with a narrow collar and buttons down the front and long sleeves. Comfortable fit and titled kaleidoscope patterns.

      • sku#string

        The SKU of the catalog item variant.

        Example: OBS-MD

      • inventory_policy#integer

        This field controls the visibility of this catalog item variant in product feeds/blocks. This field supports the following values: 1: a product will not appear in dynamic product recommendation feeds and blocks if it is out of stock. 0 or 2: a product can appear in dynamic product recommendation feeds and blocks regardless of inventory quantity.

        Allowed values:
        • 0
        • 1
        • 2

        Example: 2

      • inventory_quantity#number

        The quantity of the catalog item variant currently in stock.

        Example: 25

      • price#number

        This field can be used to set the price on the catalog item variant, which is what gets displayed for the item variant when included in emails. For most price-update use cases, you will also want to update the price on any parent items using the Update Catalog Item Endpoint.

        Example: 42

      • url#string

        URL pointing to the location of the catalog item variant on your website.

        Example: https://via.placeholder.com/150

      • image_full_url#string

        URL pointing to the location of a full image of the catalog item variant.

        Example: https://via.placeholder.com/300

      • image_thumbnail_url#string

        URL pointing to the location of an image thumbnail of the catalog item variant.

        Example: https://via.placeholder.com/150

      • images#string[]

        List of URLs pointing to the locations of images of the catalog item variant.

      • custom_metadata#object

        Flat JSON blob to provide custom metadata about the catalog item variant. May not exceed 100kb.

      • published#boolean

        Boolean value indicating whether the catalog item variant is published.

        Example: true

      • created#string<date-time>

        Date and time when the catalog item variant was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).

        Example: 2022-11-08T00:00:00

      • updated#string<date-time>

        Date and time when the catalog item variant was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).

        Example: 2022-11-08T00:00:00

4XXClient Error

Content type: application/json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string