{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hint-health/main/json-schema/hint-health-product-category-sanitizer-schema.json",
  "title": "ProductCategorySanitizer",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hint-health-product-category-api-openapi.yml#/components/schemas/ProductCategorySanitizer",
  "type": "object",
  "properties": {
    "category_id": {
      "type": "string",
      "description": "Public id of an existing category from `GET /partner/products/categories`. Provide this to attach an existing category; takes precedence over `name`."
    },
    "name": {
      "type": "string",
      "description": "Category name. Free-form — pick from the list returned by `GET /partner/products/categories` to match an existing category, or supply a new name to create one. Most marketplace listings have 1–3 categories."
    }
  }
}