Skip to main content
Some resources in the Directory API support a /_search endpoint, which allows for advanced filtering and querying.

Request

Search requests are sent as a POST request to:
The request body must be a JSON object with a filter field that defines your query conditions.

JSON Structure

Filter Operators

Logical Operators

  • orCondition:
    When true, filters at this level are combined using OR logic (any condition can match).
    When false or omitted, filters use AND logic (all conditions must match).
    This applies both at the root level and inside nestedFilters.
  • nestedFilters:
    A list of additional filter objects that are evaluated as a group, allowing for nested logic.
Note: Field names used in filters must match the exact field names defined in the resource schema (typically camelCase).

Example: Search Request

Find all StudentPlacements that are in schoolYear 7 and either:
  • have an endDate after 2025-04-24, or
  • have no endDate at all.

Equivalent SQL

This example helps illustrate how orCondition and nestedFilters map to grouped AND/OR conditions in SQL.