{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/marketsdk/json-schema/marketsdk-update-category-dto-schema.json",
  "title": "UpdateCategoryDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/marketsdk-categories-api-openapi.yml#/components/schemas/UpdateCategoryDto",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 120
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "parent": {
      "type": [
        "string",
        "null"
      ]
    },
    "fee": {
      "anyOf": [
        {
          "$ref": "#/$defs/CategoryFeeDto"
        },
        {
          "type": "null"
        }
      ]
    },
    "prohibited": {
      "type": "boolean",
      "description": "Listings in a prohibited category cannot be published. Listings already published stay until moderated."
    }
  },
  "$defs": {
    "CategoryFeeDto": {
      "type": "object",
      "properties": {
        "percent_bps": {
          "type": [
            "number",
            "null"
          ],
          "minimum": 0,
          "maximum": 10000,
          "description": "Basis points: 250 is 2.5 percent."
        },
        "fixed_amount": {
          "type": [
            "number",
            "null"
          ],
          "minimum": 0,
          "description": "Minor units, in the marketplace currency."
        }
      }
    }
  }
}