commercetools icon

commercetools

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

Actions671

Product-type → Create ProductType

AI-generated

Summary

Create a new product type in commercetools by specifying its name, description, and a JSON array of attributes defining its schema.

Inputs

  • Name (required) — The unique name for the product type to be created.
  • Description (required) — The description providing details about the product type.
  • Attributes (required) — A JSON array defining the attributes of the product type, specifying the schema for products of this type.

Output shape

a single JSON object representing the created product type resource from commercetools

The output includes all details returned from the commercetools API for the newly created product type. Errors during creation will throw failures unless 'Continue On Fail' is enabled.

Links

Discussion