{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Create a new variant for a related catalog item.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `750/m`\n\n**Scopes:**\n`catalogs:write`\n\n[OpenAPI Spec](https://raw.githubusercontent.com/klaviyo/openapi/main/openapi/stable/apis/create_catalog_variant.json)","properties":{"query":{"type":"object","properties":{"fields[catalog-variant]":{"type":"array","items":{"type":"string","enum":["created","custom_metadata","description","external_id","id","image_full_url","image_thumbnail_url","images","inventory_policy","inventory_quantity","price","published","sku","title","updated","url"]},"description":"For more information please visit https://developers.klaviyo.com/en/v2026-10-15/reference/api-overview#sparse-fieldsets"}},"required":[],"additionalProperties":false},"headers":{"type":"object","properties":{"revision":{"type":"string","default":"2026-10-15","enum":["2026-10-15"],"description":"API endpoint revision (format: YYYY-MM-DD[.suffix])"}},"required":["revision"],"additionalProperties":false},"body":{"$ref":"#/definitions/CatalogVariantCreateQuery"}},"required":["headers","body"],"additionalProperties":false,"definitions":{"CatalogVariantCreateQuery":{"type":"object","properties":{"data":{"$ref":"#/definitions/CatalogVariantCreateQueryResourceObject"}},"required":["data"]},"CatalogVariantCreateQueryResourceObject":{"type":"object","properties":{"type":{"$ref":"#/definitions/CatalogVariantEnum"},"attributes":{"type":"object","properties":{"external_id":{"description":"The ID of the catalog item variant in an external system.","type":"string","examples":["SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM"]},"catalog_type":{"description":"The type of catalog. Currently only \"$default\" is supported.","type":["string","null"],"default":"$default","examples":["$default"]},"integration_type":{"description":"The integration type. Currently only \"$custom\" is supported.","type":["string","null"],"default":"$custom","enum":["$custom"],"examples":["$custom"]},"title":{"description":"The title of the catalog item variant.","type":"string","examples":["Ocean Blue Shirt (Sample) Variant Medium"]},"description":{"description":"A description of the catalog item variant.","type":"string","examples":["Ocean blue cotton shirt with a narrow collar and buttons down the front and long sleeves. Comfortable fit and titled kaleidoscope patterns."]},"sku":{"description":"The SKU of the catalog item variant.","type":"string","examples":["OBS-MD"]},"inventory_policy":{"description":"This field controls the visibility of this catalog item variant in product feeds/blocks. This field supports the following values:\n`1`: a product will not appear in dynamic product recommendation feeds and blocks if it is out of stock.\n`0` or `2`: a product can appear in dynamic product recommendation feeds and blocks regardless of inventory quantity.","type":["integer","null"],"default":0,"enum":[0,1,2],"examples":[2]},"inventory_quantity":{"description":"The quantity of the catalog item variant currently in stock.","type":"number","examples":[25]},"price":{"description":"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](https://developers.klaviyo.com/en/reference/update_catalog_item).","type":"number","examples":[42]},"url":{"description":"URL pointing to the location of the catalog item variant on your website.","type":"string","examples":["https://via.placeholder.com/150"]},"image_full_url":{"description":"URL pointing to the location of a full image of the catalog item variant.","type":["string","null"],"examples":["https://via.placeholder.com/300"]},"image_thumbnail_url":{"description":"URL pointing to the location of an image thumbnail of the catalog item variant.","type":["string","null"],"examples":["https://via.placeholder.com/150"]},"images":{"description":"List of URLs pointing to the locations of images of the catalog item variant.","type":["array","null"],"items":{"type":"string"},"examples":[["https://via.placeholder.com/150"]]},"custom_metadata":{"description":"Flat JSON blob to provide custom metadata about the catalog item variant. May not exceed 100kb.","type":["object","null"],"examples":[{"Top Pick":true}]},"published":{"description":"Boolean value indicating whether the catalog item variant is published.","type":["boolean","null"],"default":true,"examples":[true]}},"required":["external_id","title","description","sku","inventory_quantity","price","url"]},"relationships":{"type":"object","properties":{"item":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"$ref":"#/definitions/CatalogItemEnum"},"id":{"description":"The original catalog item ID for which this is a variant.","type":"string","examples":["$custom:::$default:::SAMPLE-DATA-ITEM-1"]}},"required":["type","id"]}}}},"required":["item"]}},"required":["type","attributes","relationships"]},"CatalogVariantEnum":{"type":"string","enum":["catalog-variant"]},"CatalogItemEnum":{"type":"string","enum":["catalog-item"]}}},"name":"Create Catalog Variant","id":"klaviyo.create_catalog_variant","example":{"headers":{"revision":"2026-10-15"},"body":{"data":{"type":"catalog-variant","attributes":{"external_id":"SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM","title":"Ocean Blue Shirt (Sample) Variant Medium","description":"Ocean blue cotton shirt with a narrow collar and buttons down the front and long sleeves. Comfortable fit and titled kaleidoscope patterns.","sku":"OBS-MD","inventory_quantity":25,"price":42,"url":"https://via.placeholder.com/150"},"relationships":{"item":{}}}}},"maxRequests":1,"summary":false}}