Importing Product Types
Create and update ProductTypes in your Project.
The ProductType data to import is represented by ProductTypeImport and included in a ProductTypeImportRequest, which is imported using Import ProductTypes.
Read the Nested Attribute tutorial to learn how to create/update nested Attribute values with the Import API.
Representations
ProductTypeImportRequest
The request body to import ProductTypes. Contains data for ProductTypes to be created or updated in a Project.
type | "product-type"The Product Type import resource type. |
resourcesArray of ProductTypeImport | The product type import resources of this request. MaxItems:20 |
{"type": "product-type","resources": [{"key": "sample","name": "test_product_type","description": "Test product type.","attributes": [{"name": "product-ref-attribute","label": {"en": "selling product"},"isRequired": false,"isSearchable": false,"type": {"name": "reference","referenceTypeId": "category"},"attributeConstraint": "Unique","inputTip": {"en": "product input tip"},"inputHint": "SingleLine"}]}]}
ProductTypeImport
The data representation for a ProductType to be imported that is persisted as a ProductType in the Project.
keyString | User-defined unique identifier. If a ProductType with this 2MaxLength: 256Pattern: ^[A-Za-z0-9_-]+$ |
nameString | Maps to |
descriptionString | Maps to |
attributesArray of AttributeDefinition | The |
Import ProductTypes
Creates a request for creating new ProductTypes or updating existing ones.
manage_products:{projectKey}regionString | The Region in which the Project is hosted. |
projectKeyString | The Project key. |
importContainerKeyString | The ImportContainer used to create the new resource |
application/jsonapplication/json