{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/copper-financial/json-schema/copper-financial-custom-activity-type-schema.json",
  "title": "CustomActivityType",
  "description": "Custom activity types allow you to define custom activities beyond the default Copper activity types",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/copper-financial-custom-fields-api-openapi.yml#/components/schemas/CustomActivityType",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Unique identifier for the custom activity type"
    },
    "name": {
      "type": "string",
      "description": "Name of the custom activity type"
    },
    "icon_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "Icon type for the custom activity"
    },
    "is_disabled": {
      "type": "boolean",
      "description": "Whether the custom activity type is disabled"
    },
    "is_interaction": {
      "type": "boolean",
      "description": "Whether this activity type counts as an interaction"
    },
    "count_as_interaction": {
      "type": "boolean",
      "description": "Legacy field - same as is_interaction"
    }
  },
  "required": [
    "id",
    "name"
  ]
}