Skip to content

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

KlaviyoKlaviyoDevelopers
v2025-01-15

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

Bulk Update Catalog Variants

POSThttps://a.klaviyo.com/api/catalog-variant-bulk-update-jobs

Create a catalog variant bulk update job to update a batch of catalog variants.

Accepts up to 100 catalog variants per request. The maximum allowed payload size is 5MB. The maximum number of jobs in progress at one time is 500.

Revision header
revision: 2025-01-15required
Scopes
catalogs:write
Rate limits
Burst: 75/sSteady: 700/m

Headers

  • revision#stringrequired

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

    2025-01-15

Request body

Content type: application/vnd.api+jsonrequired

  • data#objectrequired
    Show 2 fields
    • type#stringrequired
      Allowed values:
      • catalog-variant-bulk-update-job
    • attributes#objectrequired
      Show 1 field
      • variants#objectrequired

        Array of catalog variants to update.

        Show 1 field
        • data#object[]required
          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 12 fields
            • title#stringnullable

              The title of the catalog item variant.

              Example: Ocean Blue Shirt (Sample) Variant Medium

            • description#stringnullable

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

              The SKU of the catalog item variant.

              Example: OBS-MD

            • inventory_policy#integernullable

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

              The quantity of the catalog item variant currently in stock.

              Example: 25

            • price#numbernullable

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

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

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

            • image_full_url#stringnullable

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

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

            • image_thumbnail_url#stringnullable

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

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

            • images#string[]nullable

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

            • custom_metadata#objectnullable

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

            • published#booleannullable

              Boolean value indicating whether the catalog item variant is published.

              Example: true

Responses

202Success

Content type: application/vnd.api+json

  • data#objectrequired
    Show 5 fields
    • type#stringrequired
      Allowed values:
      • catalog-variant-bulk-update-job
    • id#stringrequired

      Unique identifier for retrieving the job. Generated by Klaviyo.

    • attributes#objectrequired
      Show 8 fields
      • status#stringrequired

        Status of the asynchronous job.

        Allowed values:
        • cancelled
        • complete
        • processing
        • queued

        Example: processing

      • created_at#string<date-time>required

        The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).

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

      • total_count#integerrequired

        The total number of operations to be processed by the job. See completed_count for the job's current progress.

        Example: 10

      • completed_count#integernullable

        The total number of operations that have been completed by the job.

        Default: 0

        Example: 9

      • failed_count#integernullable

        The total number of operations that have failed as part of the job.

        Default: 0

        Example: 1

      • completed_at#string<date-time>nullable

        Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).

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

      • errors#object[]nullable

        Array of errors encountered during the processing of the job.

        Show 5 fields
        • id#stringrequired

          Unique identifier for the error.

          Example: e4eebb08-b055-4a6f-bb13-c8cb69c9eb94

        • code#stringrequired

          A code for classifying the error type.

          Example: invalid

        • title#stringrequired

          A high-level message about the error.

          Example: Invalid input

        • detail#stringrequired

          Specific details about the error.

          Example: The payload provided in the request is invalid.

        • source#objectrequired
          Show 1 field
          • pointer#stringnullable

            A pointer to the source of the error in the request payload.

            Default: /data

            Example: /data

      • expires_at#string<date-time>nullable

        Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).

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

    • relationships#object
      Show 1 field
      • variants#object
        Show 2 fields
        • data#object[]
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • catalog-variant
          • id#stringrequired

            IDs of the updated catalog variants.

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

4XXClient Error

Content type: application/vnd.api+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/vnd.api+json

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