{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blackbaud/json-schema/blackbaud-events-search-request-schema.json",
  "title": "EventsSearchRequest",
  "description": "Represents the search criteria used to query volunteer events.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blackbaud-volunteer-api-openapi.yml#/components/schemas/EventsSearchRequest",
  "required": [
    "page"
  ],
  "type": "object",
  "properties": {
    "term": {
      "type": [
        "string",
        "null"
      ],
      "description": "A keyword or phrase to search for in event names and descriptions."
    },
    "page": {
      "type": "integer",
      "description": "The page number of results to retrieve.",
      "format": "int32"
    },
    "limit": {
      "maximum": 25,
      "minimum": 1,
      "type": "integer",
      "description": "The maximum number of results to include per page. Must be between 1 and 25. Defaults to 10.",
      "format": "int32",
      "default": 10
    },
    "start_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "Filters events to those that begin on or after this date (ISO 8601 format)."
    },
    "end_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "Filters events to those that begin on or before this date (ISO 8601 format)."
    },
    "edited_from": {
      "type": [
        "string",
        "null"
      ],
      "description": "Filters events to those that were modified on or after this date (ISO 8601 format)."
    },
    "edited_to": {
      "type": [
        "string",
        "null"
      ],
      "description": "Filters events to those that were modified on or before this date (ISO 8601 format)."
    },
    "include_virtual": {
      "type": "boolean",
      "description": "When `true`, includes virtual events in the results."
    },
    "hide_full": {
      "type": "boolean",
      "description": "When `true`, excludes events that have reached their maximum participant capacity."
    },
    "distance_in_miles": {
      "type": [
        "number",
        "null"
      ],
      "description": "Filters events within this radius (in miles) from the specified coordinates.\nRequires Blackbaud.CsrConnect.ExternalApi.ProxyService.Models.Requests.EventsSearchRequest.Latitude and Blackbaud.CsrConnect.ExternalApi.ProxyService.Models.Requests.EventsSearchRequest.Longitude to be provided.",
      "format": "double"
    },
    "latitude": {
      "type": [
        "number",
        "null"
      ],
      "description": "The latitude coordinate for proximity-based filtering.",
      "format": "double"
    },
    "longitude": {
      "type": [
        "number",
        "null"
      ],
      "description": "The longitude coordinate for proximity-based filtering.",
      "format": "double"
    },
    "tags": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "Filters events by one or more tags."
    },
    "types": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "Filters events by one or more type labels."
    },
    "categories": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "Filters events by one or more categories."
    }
  },
  "additionalProperties": false
}