commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Product Tailoring → Create ProductTailoring

AI-generated

Summary

Create a new Product Tailoring entity in commercetools with specified localization, metadata, variants, and publishing settings.

Inputs

  • Product › Type Id — The type ID of the product to which the tailoring applies.
  • Product › Id — The ID of the product to tailor.
  • Store › Key — The key of the store associated with the product tailoring.
  • Name (required) — Localized names for the product tailoring, provided as a JSON object keyed by language codes.
  • Meta Title (required) — Localized meta titles for SEO, provided as a JSON object keyed by language codes.
  • Meta Description (required) — Localized meta descriptions for SEO, provided as a JSON object keyed by language codes.
  • Meta Keywords (required) — Localized meta keywords for SEO, provided as a JSON object keyed by language codes.
  • Slug (required) — Localized URL slugs, provided as a JSON object keyed by language codes.
  • Description (required) — Localized product tailoring descriptions, provided as a JSON object keyed by language codes.
  • Variants (required) — JSON array defining the variants of the product tailoring.
  • Attributes (required) — JSON array of attributes associated with the product tailoring.
  • Publish (required) — Boolean flag indicating if the product tailoring should be published immediately.

Output shape

a single JSON object representing the created Product Tailoring resource from commercetools

The output contains the full API response for the created product tailoring resource. Errors throw exceptions or, if 'Continue On Fail' is enabled, return an error JSON object for individual workflow items.

Examples

Example 1: Create Product Tailoring with English localization and variants

Fill required fields with localized JSON objects and set variants and attributes arrays appropriately, then enable publish if desired.

Links

Discussion