{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/blackbaud/main/json-schema/blackbaud-code-table-create-schema.json",
  "title": "CodeTableCreate",
  "description": "New code table to be added",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blackbaud-code-table-api-openapi.yml#/components/schemas/CodeTableCreate",
  "required": [
    "name"
  ],
  "type": "object",
  "properties": {
    "name": {
      "maxLength": 30,
      "minLength": 0,
      "type": "string",
      "description": "The name of the code table."
    },
    "category": {
      "$ref": "#/$defs/CodeTableCategory"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "CodeTableCategory": {
      "enum": [
        "All",
        "Biographical",
        "Gift",
        "Action",
        "CFA",
        "Solicitor",
        "Education",
        "Membership",
        "Volunteer",
        "Prospect",
        "Events",
        "WorkplaceGiving"
      ],
      "type": "string",
      "description": "The code table categories available. Certain categories are product module dependent."
    }
  }
}