{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/woocommerce/json-schema/woocommerce-product-category-input-schema.json",
  "title": "ProductCategoryInput",
  "description": "Input for creating or updating a product category.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/woocommerce-product-categories-api-openapi.yml#/components/schemas/ProductCategoryInput",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Category name (required for create)."
    },
    "slug": {
      "type": "string",
      "description": "URL-friendly category identifier."
    },
    "parent": {
      "type": "integer",
      "description": "Parent category ID for nested categories."
    },
    "description": {
      "type": "string",
      "description": "Category description."
    },
    "display": {
      "type": "string",
      "description": "Category archive display type.",
      "enum": [
        "default",
        "products",
        "subcategories",
        "both"
      ]
    }
  }
}