Importing Product Variant Patches
Update or remove the Attributes of ProductVariants in your Project.
The ProductVariant update data is represented by ProductVariantPatch and included in a ProductVariantPatchRequest, which is imported using Import ProductVariantPatches.
Representations
ProductVariantPatchRequest
The request body to import ProductVariantPatches. The data to be imported are represented by ProductVariantPatch.
type | "product-variant-patch" The Product Variant patch resource type. |
patches Array of ProductVariantPatch | The product variant patches of this request. MaxItems:20 |
{"type": "product-variant-patch","patches": [{"productVariant": {"typeId": "product-variant","key": "red-t-shirt"},"attributes": {"attribute-to-update": {"type": "boolean","value": true},"name-of-attribute-to-delete": null,"name-of-localized-attribute-to-update": {"type": "ltext","value": {"en": "Existing field","es": null,"de": "Updating field"}},"name-of-localized-attribute-set-to-update": {"type": "ltext-set","value": [{"en": "Existing field","es": null,"de": "Updating field","br": "New field"},{"en": "Another Existing field","es": null,"de": "Another Updating field","br": "Another New field"}]}},"staged": false}]}
ProductVariantPatch
Representation for an update of a ProductVariant. Use this type to import updates for existing ProductVariants in a Project.
productVariant | Reference to the ProductVariant to update.
If the referenced ProductVariant does not exist, the |
attributes Attributes | Maps to
|
staged Boolean | If true |
product | Reference to the Product which contains the ProductVariant. Setting a value will batch process the import operations to minimize concurrency errors. If set, this field is required for every ProductVariantPatch in the ProductVariantPatchRequest. |
Import ProductVariantPatches
Creates a new import request for product variant patches
manage_products:{projectKey}
region String | The Region in which the Project is hosted. |
projectKey String | The Project key. |
importContainerKey String | The ImportContainer used to create the new resource |
application/json
application/json