commercetools icon

commercetools

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

Actions671

Category → Create Category

AI-generated

Summary

Create a new category in the commercetools platform by specifying its localization name, slug, optional parent category, and order hint.

Inputs

  • Name (required) — A JSON object defining the category's localized name (e.g., { "en": "Category Name" }).
  • Slug (required) — A JSON object specifying the localized slug for the category (used in URLs).
  • Parent › Type Id — The type identifier of the parent resource if this category has a parent.
  • Parent › Id — The identifier of the parent category if applicable.
  • Order Hint (required) — A string used to control the order of the category in listings.

Output shape

a single JSON object representing the created category as returned by the commercetools API

The output contains the full category data object as returned by the commercetools API, conforming to the platform's API response for category creation. If the operation fails and Continue On Fail is enabled, error details are returned instead.

Links

Discussion